Skip to content

Commit 35ca102

Browse files
committed
Fixing the versions of some deprecations that wrongly added as 5.0.3 - the correct version is 5.3.0 (#3625)
1 parent 53dba14 commit 35ca102

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

redis/asyncio/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def from_url(cls, url: str, **kwargs: Any) -> "RedisCluster":
239239
@deprecated_args(
240240
args_to_warn=["read_from_replicas"],
241241
reason="Please configure the 'load_balancing_strategy' instead",
242-
version="5.0.3",
242+
version="5.3.0",
243243
)
244244
def __init__(
245245
self,

redis/asyncio/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ def can_get_connection(self) -> bool:
10901090
@deprecated_args(
10911091
args_to_warn=["*"],
10921092
reason="Use get_connection() without args instead",
1093-
version="5.0.3",
1093+
version="5.3.0",
10941094
)
10951095
async def get_connection(self, command_name=None, *keys, **options):
10961096
async with self._lock:
@@ -1263,7 +1263,7 @@ def __init__(
12631263
@deprecated_args(
12641264
args_to_warn=["*"],
12651265
reason="Use get_connection() without args instead",
1266-
version="5.0.3",
1266+
version="5.3.0",
12671267
)
12681268
async def get_connection(self, command_name=None, *keys, **options):
12691269
"""Gets a connection from the pool, blocking until one is available"""

redis/cluster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_node_name(host: str, port: Union[str, int]) -> str:
5959
@deprecated_args(
6060
allowed_args=["redis_node"],
6161
reason="Use get_connection(redis_node) instead",
62-
version="5.0.3",
62+
version="5.3.0",
6363
)
6464
def get_connection(redis_node, *args, **options):
6565
return redis_node.connection or redis_node.connection_pool.get_connection()
@@ -509,7 +509,7 @@ class initializer. In the case of conflicting arguments, querystring
509509
@deprecated_args(
510510
args_to_warn=["read_from_replicas"],
511511
reason="Please configure the 'load_balancing_strategy' instead",
512-
version="5.0.3",
512+
version="5.3.0",
513513
)
514514
def __init__(
515515
self,
@@ -1503,7 +1503,7 @@ def _update_moved_slots(self):
15031503
"In case you need select some load balancing strategy "
15041504
"that will use replicas, please set it through 'load_balancing_strategy'"
15051505
),
1506-
version="5.0.3",
1506+
version="5.3.0",
15071507
)
15081508
def get_node_from_slot(
15091509
self,

redis/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ def _checkpid(self) -> None:
14651465
@deprecated_args(
14661466
args_to_warn=["*"],
14671467
reason="Use get_connection() without args instead",
1468-
version="5.0.3",
1468+
version="5.3.0",
14691469
)
14701470
def get_connection(self, command_name=None, *keys, **options) -> "Connection":
14711471
"Get a connection from the pool"
@@ -1693,7 +1693,7 @@ def make_connection(self):
16931693
@deprecated_args(
16941694
args_to_warn=["*"],
16951695
reason="Use get_connection() without args instead",
1696-
version="5.0.3",
1696+
version="5.3.0",
16971697
)
16981698
def get_connection(self, command_name=None, *keys, **options):
16991699
"""

0 commit comments

Comments
 (0)