diff --git a/redis/connection.py b/redis/connection.py index d47f46590b..c4ff9b7b17 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