Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto committed May 28, 2024
1 parent b0bdb76 commit 1660336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redis/retry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import socket
from time import sleep
from typing import TYPE_CHECKING, Any, Iterable, TypeVar, Callable
from typing import TYPE_CHECKING, Any, Iterable, TypeVar, Callable, Type, Tuple

from redis.exceptions import ConnectionError, TimeoutError

Expand All @@ -15,9 +15,9 @@ class Retry:

def __init__(
self,
backoff: AbstractBackoff,
backoff: "AbstractBackoff",
retries: int,
supported_errors: tuple[type[Exception], ...] = (
supported_errors: Tuple[Type[Exception], ...] = (
ConnectionError,
TimeoutError,
socket.timeout,
Expand Down

0 comments on commit 1660336

Please sign in to comment.