mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Update pyright to 1.1.289
This commit is contained in:
1 parent
bf860b0b07
commit
3ff88db768
7 files changed
+9
-9
No files matched your search
+1
-1
@@ -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