Skip to content

Commit

Permalink
Fix typing for address_remap (fixes redis#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
daveisfera committed May 16, 2024
1 parent 6751de2 commit 9343c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def __init__(
read_from_replicas: bool = False,
dynamic_startup_nodes: bool = True,
url: Optional[str] = None,
address_remap: Optional[Callable[[str, int], Tuple[str, int]]] = None,
address_remap: Optional[Callable[Tuple[str, int], Tuple[str, int]]] = None,
**kwargs,
):
"""
Expand Down Expand Up @@ -1347,7 +1347,7 @@ def __init__(
lock=None,
dynamic_startup_nodes=True,
connection_pool_class=ConnectionPool,
address_remap: Optional[Callable[[str, int], Tuple[str, int]]] = None,
address_remap: Optional[Callable[Tuple[str, int], Tuple[str, int]]] = None,
**kwargs,
):
self.nodes_cache = {}
Expand Down

0 comments on commit 9343c0a

Please sign in to comment.