summaryrefslogtreecommitdiff
path: root/redis/asyncio/retry.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/asyncio/retry.py')
-rw-r--r--redis/asyncio/retry.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/asyncio/retry.py b/redis/asyncio/retry.py
index 9b53494..284eacc 100644
--- a/redis/asyncio/retry.py
+++ b/redis/asyncio/retry.py
@@ -1,5 +1,5 @@
from asyncio import sleep
-from typing import TYPE_CHECKING, Any, Awaitable, Callable, Tuple, TypeVar
+from typing import TYPE_CHECKING, Any, Awaitable, Callable, Tuple, Type, TypeVar
from redis.exceptions import ConnectionError, RedisError, TimeoutError
@@ -19,7 +19,7 @@ class Retry:
self,
backoff: "AbstractBackoff",
retries: int,
- supported_errors: Tuple[RedisError, ...] = (
+ supported_errors: Tuple[Type[RedisError], ...] = (
ConnectionError,
TimeoutError,
),