Skip to content

Commit 9343c0a

Browse files
committed
Fix typing for address_remap (fixes redis#3234)
1 parent 6751de2 commit 9343c0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis/cluster.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def __init__(
506506
read_from_replicas: bool = False,
507507
dynamic_startup_nodes: bool = True,
508508
url: Optional[str] = None,
509-
address_remap: Optional[Callable[[str, int], Tuple[str, int]]] = None,
509+
address_remap: Optional[Callable[Tuple[str, int], Tuple[str, int]]] = None,
510510
**kwargs,
511511
):
512512
"""
@@ -1347,7 +1347,7 @@ def __init__(
13471347
lock=None,
13481348
dynamic_startup_nodes=True,
13491349
connection_pool_class=ConnectionPool,
1350-
address_remap: Optional[Callable[[str, int], Tuple[str, int]]] = None,
1350+
address_remap: Optional[Callable[Tuple[str, int], Tuple[str, int]]] = None,
13511351
**kwargs,
13521352
):
13531353
self.nodes_cache = {}

0 commit comments

Comments
 (0)