Skip to content

Commit d5a59cd

Browse files
authored
Fix reported version of deprecations in asyncio.client (#2968)
1 parent fd281e0 commit d5a59cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

redis/asyncio/client.py

Lines changed: 5 additions & 5 deletions
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
)
@@ -569,7 +569,7 @@ async def aclose(self, close_connection_pool: Optional[bool] = None) -> None:
569569
):
570570
await self.connection_pool.disconnect()
571571

572-
@deprecated_function(version="5.0.0", reason="Use aclose() instead", name="close")
572+
@deprecated_function(version="5.0.1", reason="Use aclose() instead", name="close")
573573
async def close(self, close_connection_pool: Optional[bool] = None) -> None:
574574
"""
575575
Alias for aclose(), for backwards compatibility
@@ -807,12 +807,12 @@ async def aclose(self):
807807
self.patterns = {}
808808
self.pending_unsubscribe_patterns = set()
809809

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

815-
@deprecated_function(version="5.0.0", reason="Use aclose() instead", name="reset")
815+
@deprecated_function(version="5.0.1", reason="Use aclose() instead", name="reset")
816816
async def reset(self) -> None:
817817
"""Alias for aclose(), for backwards compatibility"""
818818
await self.aclose()

0 commit comments

Comments
 (0)