From c1b64fa840f8b24f99e8e08c4c293f936188c3f6 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Fri, 29 Sep 2023 23:06:29 -0500 Subject: [PATCH] Fix reported version of deprecations in asyncio.client --- redis/asyncio/client.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/redis/asyncio/client.py b/redis/asyncio/client.py index e4d2e776bc..584c0e71e3 100644 --- a/redis/asyncio/client.py +++ b/redis/asyncio/client.py @@ -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." ) @@ -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." ) @@ -565,7 +565,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 @@ -802,12 +802,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()