From 1ca223a9d0df046075dddd4b572791915d657ae7 Mon Sep 17 00:00:00 2001 From: Avasam Date: Mon, 1 May 2023 02:48:19 -0400 Subject: Fix `ClusterCommandProtocol` not itself being marked as a protocol (#2729) * Fix `ClusterCommandProtocol` not itself being marked as a protocol * Update CHANGES --- CHANGES | 1 + redis/typing.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 8c6100d..8f20172 100644 --- a/CHANGES +++ b/CHANGES @@ -43,6 +43,7 @@ * Added a replacement for the default cluster node in the event of failure (#2463) * Fix for Unhandled exception related to self.host with unix socket (#2496) * Improve error output for master discovery + * Make `ClusterCommandsProtocol` an actual Protocol * 4.1.3 (Feb 8, 2022) * Fix flushdb and flushall (#1926) 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]: -- cgit v1.2.1