Skip to content

Commit f29a7d7

Browse files
zwaredvora-h
authored andcommitted
Fix reported version of deprecations in asyncio.client (#2968)
1 parent 3f4f5e3 commit f29a7d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

redis/asyncio/client.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class initializer. In the case of conflicting arguments, querystring
168168
warnings.warn(
169169
DeprecationWarning(
170170
'"auto_close_connection_pool" is deprecated '
171-
"since version 5.0.0. "
171+
"since version 5.0.1. "
172172
"Please create a ConnectionPool explicitly and "
173173
"provide to the Redis() constructor instead."
174174
)
@@ -247,7 +247,7 @@ def __init__(
247247
warnings.warn(
248248
DeprecationWarning(
249249
'"auto_close_connection_pool" is deprecated '
250-
"since version 5.0.0. "
250+
"since version 5.0.1. "
251251
"Please create a ConnectionPool explicitly and "
252252
"provide to the Redis() constructor instead."
253253
)
@@ -566,7 +566,7 @@ async def aclose(self, close_connection_pool: Optional[bool] = None) -> None:
566566
):
567567
await self.connection_pool.disconnect()
568568

569-
@deprecated_function(version="5.0.0", reason="Use aclose() instead", name="close")
569+
@deprecated_function(version="5.0.1", reason="Use aclose() instead", name="close")
570570
async def close(self, close_connection_pool: Optional[bool] = None) -> None:
571571
"""
572572
Alias for aclose(), for backwards compatibility
@@ -803,12 +803,12 @@ async def aclose(self):
803803
self.patterns = {}
804804
self.pending_unsubscribe_patterns = set()
805805

806-
@deprecated_function(version="5.0.0", reason="Use aclose() instead", name="close")
806+
@deprecated_function(version="5.0.1", reason="Use aclose() instead", name="close")
807807
async def close(self) -> None:
808808
"""Alias for aclose(), for backwards compatibility"""
809809
await self.aclose()
810810

811-
@deprecated_function(version="5.0.0", reason="Use aclose() instead", name="reset")
811+
@deprecated_function(version="5.0.1", reason="Use aclose() instead", name="reset")
812812
async def reset(self) -> None:
813813
"""Alias for aclose(), for backwards compatibility"""
814814
await self.aclose()

0 commit comments

Comments
 (0)