Skip to content

Commit 3d814d8

Browse files
petyaslavovaManelCoutinhoSensei
authored andcommitted
Fixing the versions of some deprecations that wrongly added as 5.0.3 - the correct version is 5.3.0 (redis#3625)
1 parent c455753 commit 3d814d8

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
@@ -229,7 +229,7 @@ def from_url(cls, url: str, **kwargs: Any) -> "RedisCluster":
229229
@deprecated_args(
230230
args_to_warn=["read_from_replicas"],
231231
reason="Please configure the 'load_balancing_strategy' instead",
232-
version="5.0.3",
232+
version="5.3.0",
233233
)
234234
def __init__(
235235
self,

redis/asyncio/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ def can_get_connection(self) -> bool:
11621162
@deprecated_args(
11631163
args_to_warn=["*"],
11641164
reason="Use get_connection() without args instead",
1165-
version="5.0.3",
1165+
version="5.3.0",
11661166
)
11671167
async def get_connection(self, command_name=None, *keys, **options):
11681168
async with self._lock:
@@ -1335,7 +1335,7 @@ def __init__(
13351335
@deprecated_args(
13361336
args_to_warn=["*"],
13371337
reason="Use get_connection() without args instead",
1338-
version="5.0.3",
1338+
version="5.3.0",
13391339
)
13401340
async def get_connection(self, command_name=None, *keys, **options):
13411341
"""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
@@ -58,7 +58,7 @@ def get_node_name(host: str, port: Union[str, int]) -> str:
5858
@deprecated_args(
5959
allowed_args=["redis_node"],
6060
reason="Use get_connection(redis_node) instead",
61-
version="5.0.3",
61+
version="5.3.0",
6262
)
6363
def get_connection(redis_node, *args, **options):
6464
return redis_node.connection or redis_node.connection_pool.get_connection()
@@ -490,7 +490,7 @@ class initializer. In the case of conflicting arguments, querystring
490490
@deprecated_args(
491491
args_to_warn=["read_from_replicas"],
492492
reason="Please configure the 'load_balancing_strategy' instead",
493-
version="5.0.3",
493+
version="5.3.0",
494494
)
495495
def __init__(
496496
self,
@@ -1493,7 +1493,7 @@ def _update_moved_slots(self):
14931493
"In case you need select some load balancing strategy "
14941494
"that will use replicas, please set it through 'load_balancing_strategy'"
14951495
),
1496-
version="5.0.3",
1496+
version="5.3.0",
14971497
)
14981498
def get_node_from_slot(
14991499
self,

redis/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ def _checkpid(self) -> None:
15241524
@deprecated_args(
15251525
args_to_warn=["*"],
15261526
reason="Use get_connection() without args instead",
1527-
version="5.0.3",
1527+
version="5.3.0",
15281528
)
15291529
def get_connection(self, command_name=None, *keys, **options) -> "Connection":
15301530
"Get a connection from the pool"
@@ -1752,7 +1752,7 @@ def make_connection(self):
17521752
@deprecated_args(
17531753
args_to_warn=["*"],
17541754
reason="Use get_connection() without args instead",
1755-
version="5.0.3",
1755+
version="5.3.0",
17561756
)
17571757
def get_connection(self, command_name=None, *keys, **options):
17581758
"""

0 commit comments

Comments
 (0)