Skip to content

Commit 49af47c

Browse files
Fix asyncio retry.py typing (#2011)
1 parent b1ca339 commit 49af47c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis/asyncio/retry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from asyncio import sleep
2-
from typing import TYPE_CHECKING, Any, Awaitable, Callable, Tuple, TypeVar
2+
from typing import TYPE_CHECKING, Any, Awaitable, Callable, Tuple, Type, TypeVar
33

44
from redis.exceptions import ConnectionError, RedisError, TimeoutError
55

@@ -19,7 +19,7 @@ def __init__(
1919
self,
2020
backoff: "AbstractBackoff",
2121
retries: int,
22-
supported_errors: Tuple[RedisError, ...] = (
22+
supported_errors: Tuple[Type[RedisError], ...] = (
2323
ConnectionError,
2424
TimeoutError,
2525
),

0 commit comments

Comments
 (0)