Fix some webhook related type checker errors

This commit is contained in:
Rapptz committed 2021-06-10 07:57:41 -04:00
1 parent 0dd4c4c08c
commit fc66c5b92d
3 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ class File:
self.spoiler = spoiler or (self.filename is not None and self.filename.startswith('SPOILER_'))
def reset(self, *, seek: bool = True) -> None:
def reset(self, *, seek: Union[int, bool] = True) -> None:
# The `seek` parameter is needed because
# the retry-loop is iterated over multiple times
# starting from 0, as an implementation quirk