Skip to content

Commit 6768d5d

Browse files
committed
Fixed type annotations not compatible with older python versions
1 parent 4c536f3 commit 6768d5d

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
@@ -824,8 +824,8 @@ def update_parser_buffer_timeout(self, timeout: Optional[float] = None):
824824

825825
def update_tmp_settings(
826826
self,
827-
tmp_host_address: Optional[str | object] = SENTINEL,
828-
tmp_relax_timeout: Optional[float | object] = SENTINEL,
827+
tmp_host_address: Optional[Union[str, object]] = SENTINEL,
828+
tmp_relax_timeout: Optional[Union[float, object]] = SENTINEL,
829829
):
830830
"""
831831
The value of SENTINEL is used to indicate that the property should not be updated.

0 commit comments

Comments
 (0)