mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Fix some type ignores in backoff and channel
This commit is contained in:
@ -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