Skip to content

Commit 9834cfa

Browse files
birthdaysgiftpetyaslavova
authored andcommitted
Fix invalid return type annotation (redis#3480)
1 parent 9ea0e25 commit 9834cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def pack_commands(self, commands):
672672
output.append(SYM_EMPTY.join(pieces))
673673
return output
674674

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

678678
@property

0 commit comments

Comments
 (0)