Skip to content

Commit c918139

Browse files
committed
Fixing the versions of some deprecations that wrongly added as 5.0.3 - the correct version is 5.3.0 (redis#3625)
1 parent fb547af commit c918139

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
@@ -237,7 +237,7 @@ def from_url(cls, url: str, **kwargs: Any) -> "RedisCluster":
237237
@deprecated_args(
238238
args_to_warn=["read_from_replicas"],
239239
reason="Please configure the 'load_balancing_strategy' instead",
240-
version="5.0.3",
240+
version="5.3.0",
241241
)
242242
def __init__(
243243
self,

redis/asyncio/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ def can_get_connection(self) -> bool:
11331133
@deprecated_args(
11341134
args_to_warn=["*"],
11351135
reason="Use get_connection() without args instead",
1136-
version="5.0.3",
1136+
version="5.3.0",
11371137
)
11381138
async def get_connection(self, command_name=None, *keys, **options):
11391139
async with self._lock:
@@ -1306,7 +1306,7 @@ def __init__(
13061306
@deprecated_args(
13071307
args_to_warn=["*"],
13081308
reason="Use get_connection() without args instead",
1309-
version="5.0.3",
1309+
version="5.3.0",
13101310
)
13111311
async def get_connection(self, command_name=None, *keys, **options):
13121312
"""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
@@ -1502,7 +1502,7 @@ def _checkpid(self) -> None:
15021502
@deprecated_args(
15031503
args_to_warn=["*"],
15041504
reason="Use get_connection() without args instead",
1505-
version="5.0.3",
1505+
version="5.3.0",
15061506
)
15071507
def get_connection(self, command_name=None, *keys, **options) -> "Connection":
15081508
"Get a connection from the pool"
@@ -1730,7 +1730,7 @@ def make_connection(self):
17301730
@deprecated_args(
17311731
args_to_warn=["*"],
17321732
reason="Use get_connection() without args instead",
1733-
version="5.0.3",
1733+
version="5.3.0",
17341734
)
17351735
def get_connection(self, command_name=None, *keys, **options):
17361736
"""

0 commit comments

Comments
 (0)