diff --git a/redis/asyncio/cluster.py b/redis/asyncio/cluster.py index 35ea2e580e..457642b792 100644 --- a/redis/asyncio/cluster.py +++ b/redis/asyncio/cluster.py @@ -229,7 +229,7 @@ def from_url(cls, url: str, **kwargs: Any) -> "RedisCluster": @deprecated_args( args_to_warn=["read_from_replicas"], reason="Please configure the 'load_balancing_strategy' instead", - version="5.0.3", + version="5.3.0", ) def __init__( self, diff --git a/redis/asyncio/connection.py b/redis/asyncio/connection.py index 7404f3d6f8..70d7d91898 100644 --- a/redis/asyncio/connection.py +++ b/redis/asyncio/connection.py @@ -1133,7 +1133,7 @@ def can_get_connection(self) -> bool: @deprecated_args( args_to_warn=["*"], reason="Use get_connection() without args instead", - version="5.0.3", + version="5.3.0", ) async def get_connection(self, command_name=None, *keys, **options): async with self._lock: @@ -1306,7 +1306,7 @@ def __init__( @deprecated_args( args_to_warn=["*"], reason="Use get_connection() without args instead", - version="5.0.3", + version="5.3.0", ) async def get_connection(self, command_name=None, *keys, **options): """Gets a connection from the pool, blocking until one is available""" diff --git a/redis/cluster.py b/redis/cluster.py index fc5ffab892..010a3d94e6 100644 --- a/redis/cluster.py +++ b/redis/cluster.py @@ -58,7 +58,7 @@ def get_node_name(host: str, port: Union[str, int]) -> str: @deprecated_args( allowed_args=["redis_node"], reason="Use get_connection(redis_node) instead", - version="5.0.3", + version="5.3.0", ) def get_connection(redis_node, *args, **options): return redis_node.connection or redis_node.connection_pool.get_connection() @@ -490,7 +490,7 @@ class initializer. In the case of conflicting arguments, querystring @deprecated_args( args_to_warn=["read_from_replicas"], reason="Please configure the 'load_balancing_strategy' instead", - version="5.0.3", + version="5.3.0", ) def __init__( self, @@ -1493,7 +1493,7 @@ def _update_moved_slots(self): "In case you need select some load balancing strategy " "that will use replicas, please set it through 'load_balancing_strategy'" ), - version="5.0.3", + version="5.3.0", ) def get_node_from_slot( self, diff --git a/redis/connection.py b/redis/connection.py index ffb1e37ba3..ddc6991c5c 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -1502,7 +1502,7 @@ def _checkpid(self) -> None: @deprecated_args( args_to_warn=["*"], reason="Use get_connection() without args instead", - version="5.0.3", + version="5.3.0", ) def get_connection(self, command_name=None, *keys, **options) -> "Connection": "Get a connection from the pool" @@ -1730,7 +1730,7 @@ def make_connection(self): @deprecated_args( args_to_warn=["*"], reason="Use get_connection() without args instead", - version="5.0.3", + version="5.3.0", ) def get_connection(self, command_name=None, *keys, **options): """