mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix some type ignores in backoff and channel
This commit is contained in:
1 parent
c7c6d74d8d
commit
6c2ea4f0a0
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -72,7 +72,7 @@ class ExponentialBackoff(Generic[T]):
|
||||
rand = random.Random()
|
||||
rand.seed()
|
||||
|
||||
self._randfunc: Callable[..., Union[int, float]] = rand.randrange if integral else rand.uniform # type: ignore
|
||||
self._randfunc: Callable[..., Union[int, float]] = rand.randrange if integral else rand.uniform
|
||||
|
||||
@overload
|
||||
def delay(self: ExponentialBackoff[Literal[False]]) -> float:
|
||||
|
||||
Reference in new issue
Block a user