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 18, 2025
1 parent afabed6 commit a4e66bb
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 a4e66bb

Please sign in to comment.