diff --git a/redis/connection.py b/redis/connection.py index d905c6481b..597734db62 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -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