diff options
author | Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com> | 2022-03-01 05:43:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 12:43:54 +0200 |
commit | 49af47cc5ca15b52dfdc2b3d013cc01e8ec3f1ac (patch) | |
tree | fdd6c94ab50f1a7984b843380d10f67d2d058594 /redis/asyncio/retry.py | |
parent | b1ca339c50e5c77dbba066349842bdfe49357c5e (diff) | |
download | redis-py-49af47cc5ca15b52dfdc2b3d013cc01e8ec3f1ac.tar.gz |
Fix asyncio retry.py typing (#2011)
Diffstat (limited to 'redis/asyncio/retry.py')
-rw-r--r-- | redis/asyncio/retry.py | 4 |
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, ), |