Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update reported version deprecation in asyncio.client #2968

Merged
merged 3 commits into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -804,12 +804,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
Loading