mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Update pyright to 1.1.289
This commit is contained in:
@ -111,7 +111,7 @@ class File:
|
||||
else:
|
||||
filename = getattr(fp, 'name', 'untitled')
|
||||
|
||||
self._filename, filename_spoiler = _strip_spoiler(filename) # type: ignore # the above getattr doesn't narrow the type
|
||||
self._filename, filename_spoiler = _strip_spoiler(filename)
|
||||
if spoiler is MISSING:
|
||||
spoiler = filename_spoiler
|
||||
|
||||
|
Reference in New Issue
Block a user