Fix some type ignores in backoff and channel

This commit is contained in:
Rapptz
2022-02-21 22:43:19 -05:00
parent c7c6d74d8d
commit 6c2ea4f0a0
2 changed files with 2 additions and 2 deletions

View File

@ -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: