Skip to content

Commit

Permalink
Fix invalid return type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
birthdaysgift committed Jan 21, 2025
1 parent b2dd8e8 commit 4578a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def pack_commands(self, commands):
output.append(SYM_EMPTY.join(pieces))
return output

def get_protocol(self) -> int or str:
def get_protocol(self) -> Union[int, str]:
return self.protocol

@property
Expand Down

0 comments on commit 4578a49

Please sign in to comment.