summaryrefslogtreecommitdiff
path: root/redis/typing.py
diff options
context:
space:
mode:
authorAvasam <samuel.06@hotmail.com>2023-05-01 02:48:19 -0400
committerGitHub <noreply@github.com>2023-05-01 09:48:19 +0300
commit1ca223a9d0df046075dddd4b572791915d657ae7 (patch)
tree07a9931cc27d8c87ddeb8baed9b732398b9e2da3 /redis/typing.py
parentbf528fc7f776ce8e926b2e9abfa4e2460d73baa4 (diff)
downloadredis-py-1ca223a9d0df046075dddd4b572791915d657ae7.tar.gz
Fix `ClusterCommandProtocol` not itself being marked as a protocol (#2729)
* Fix `ClusterCommandProtocol` not itself being marked as a protocol * Update CHANGES
Diffstat (limited to 'redis/typing.py')
-rw-r--r--redis/typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/typing.py b/redis/typing.py
index 8504c7d..47a2556 100644
--- a/redis/typing.py
+++ b/redis/typing.py
@@ -47,7 +47,7 @@ class CommandsProtocol(Protocol):
...
-class ClusterCommandsProtocol(CommandsProtocol):
+class ClusterCommandsProtocol(CommandsProtocol, Protocol):
encoder: Union["AsyncEncoder", "Encoder"]
def execute_command(self, *args, **options) -> Union[Any, Awaitable]: