Fix some webhook related type checker errors

This commit is contained in:
Rapptz
2021-06-10 07:57:41 -04:00
parent 0dd4c4c08c
commit fc66c5b92d
3 changed files with 7 additions and 5 deletions

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