Skip to content

Commit 1660336

Browse files
committed
Address comments
1 parent b0bdb76 commit 1660336

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redis/retry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import socket
22
from time import sleep
3-
from typing import TYPE_CHECKING, Any, Iterable, TypeVar, Callable
3+
from typing import TYPE_CHECKING, Any, Iterable, TypeVar, Callable, Type, Tuple
44

55
from redis.exceptions import ConnectionError, TimeoutError
66

@@ -15,9 +15,9 @@ class Retry:
1515

1616
def __init__(
1717
self,
18-
backoff: AbstractBackoff,
18+
backoff: "AbstractBackoff",
1919
retries: int,
20-
supported_errors: tuple[type[Exception], ...] = (
20+
supported_errors: Tuple[Type[Exception], ...] = (
2121
ConnectionError,
2222
TimeoutError,
2323
socket.timeout,

0 commit comments

Comments
 (0)