Skip to content

Commit

Permalink
Fix ClusterCommandProtocol not itself being marked as a protocol (#…
Browse files Browse the repository at this point in the history
…2729)

* Fix `ClusterCommandProtocol` not itself being marked as a protocol

* Update CHANGES
  • Loading branch information
Avasam authored May 1, 2023
1 parent bf528fc commit 1ca223a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion redis/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def execute_command(self, *args, **options):
...


class ClusterCommandsProtocol(CommandsProtocol):
class ClusterCommandsProtocol(CommandsProtocol, Protocol):
encoder: Union["AsyncEncoder", "Encoder"]

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

0 comments on commit 1ca223a

Please sign in to comment.