From 32813a6345503e9f9bcc3dabb325e113379a004e Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 5 Nov 2024 07:28:45 -0800 Subject: [PATCH] Fix inaccurate docstring for unwatch() The 'unwatch()' method of the Redis client, as currently documented, says that it unwatches the value at key "name", but it does not actually take any arguments ("name" or otherwise). According to the latest Redis documentation at the given URL for the UNWATCH command, this command unwatches all previously watched keys for the current transaction. Modified docstring to reflect that this method does not take any arguments and instead (presumably) unwatches all previously watched keys. --- redis/commands/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/commands/core.py b/redis/commands/core.py index 8986a48de2..1d19e33f2c 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -2496,7 +2496,7 @@ def watch(self, *names: KeyT) -> None: def unwatch(self) -> None: """ - Unwatches the value at key ``name``, or None of the key doesn't exist + Unwatches all previously watched keys for a transaction For more information see https://redis.io/commands/unwatch """