summaryrefslogtreecommitdiff
path: root/redis/asyncio/retry.py
diff options
context:
space:
mode:
authorAndrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>2022-03-01 05:43:54 -0500
committerGitHub <noreply@github.com>2022-03-01 12:43:54 +0200
commit49af47cc5ca15b52dfdc2b3d013cc01e8ec3f1ac (patch)
treefdd6c94ab50f1a7984b843380d10f67d2d058594 /redis/asyncio/retry.py
parentb1ca339c50e5c77dbba066349842bdfe49357c5e (diff)
downloadredis-py-49af47cc5ca15b52dfdc2b3d013cc01e8ec3f1ac.tar.gz
Fix asyncio retry.py typing (#2011)
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,
),