Skip to content

Commit

Permalink
Fix reported version of deprecations in asyncio.client (#2968)
Browse files Browse the repository at this point in the history
  • Loading branch information
zware authored and dvora-h committed Feb 25, 2024
1 parent 3f4f5e3 commit f29a7d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions redis/asyncio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class initializer. In the case of conflicting arguments, querystring
warnings.warn(
DeprecationWarning(
'"auto_close_connection_pool" is deprecated '
"since version 5.0.0. "
"since version 5.0.1. "
"Please create a ConnectionPool explicitly and "
"provide to the Redis() constructor instead."
)
Expand Down Expand Up @@ -247,7 +247,7 @@ def __init__(
warnings.warn(
DeprecationWarning(
'"auto_close_connection_pool" is deprecated '
"since version 5.0.0. "
"since version 5.0.1. "
"Please create a ConnectionPool explicitly and "
"provide to the Redis() constructor instead."
)
Expand Down Expand Up @@ -566,7 +566,7 @@ async def aclose(self, close_connection_pool: Optional[bool] = None) -> None:
):
await self.connection_pool.disconnect()

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

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

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

0 comments on commit f29a7d7

Please sign in to comment.