Skip to content

Commit

Permalink
revert type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h committed Aug 2, 2023
1 parent 2d5b70b commit 5c533ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/commands/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def stringify_param_value(value):
return str(value)


def get_protocol_version(client: redis.Redis) -> Union[int, str, None]:
def get_protocol_version(client):
if isinstance(client, redis.Redis) or isinstance(client, redis.asyncio.Redis):
return client.connection_pool.connection_kwargs.get("protocol")
elif isinstance(client, redis.cluster.AbstractRedisCluster):
Expand Down

0 comments on commit 5c533ef

Please sign in to comment.