Update pyright to 1.1.289

This commit is contained in:
Rapptz committed 2023-01-16 21:57:54 -05:00
1 parent bf860b0b07
commit 3ff88db768
7 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -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