Skip to content

Commit 98ab4ef

Browse files
committed
Fixed type annotations not compatible with older python versions
1 parent 77909cb commit 98ab4ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@ def update_parser_buffer_timeout(self, timeout: Optional[float] = None):
818818

819819
def update_tmp_settings(
820820
self,
821-
tmp_host_address: Optional[str | object] = SENTINEL,
822-
tmp_relax_timeout: Optional[float | object] = SENTINEL,
821+
tmp_host_address: Optional[Union[str, object]] = SENTINEL,
822+
tmp_relax_timeout: Optional[Union[float, object]] = SENTINEL,
823823
):
824824
"""
825825
The value of SENTINEL is used to indicate that the property should not be updated.

0 commit comments

Comments
 (0)