Skip to content

Commit 1ca223a

Browse files
authored
Fix ClusterCommandProtocol not itself being marked as a protocol (#2729)
* Fix `ClusterCommandProtocol` not itself being marked as a protocol * Update CHANGES
1 parent bf528fc commit 1ca223a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* Added a replacement for the default cluster node in the event of failure (#2463)
4444
* Fix for Unhandled exception related to self.host with unix socket (#2496)
4545
* Improve error output for master discovery
46+
* Make `ClusterCommandsProtocol` an actual Protocol
4647

4748
* 4.1.3 (Feb 8, 2022)
4849
* Fix flushdb and flushall (#1926)

redis/typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def execute_command(self, *args, **options):
4747
...
4848

4949

50-
class ClusterCommandsProtocol(CommandsProtocol):
50+
class ClusterCommandsProtocol(CommandsProtocol, Protocol):
5151
encoder: Union["AsyncEncoder", "Encoder"]
5252

5353
def execute_command(self, *args, **options) -> Union[Any, Awaitable]:

0 commit comments

Comments
 (0)