Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48a57a6

Browse files
committed
Support 3.9 union syntax
1 parent a6e6a25 commit 48a57a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisvl/redis/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def cluster_search(
259259
client: Search,
260260
query: Union[str, Query],
261261
query_params: Optional[Dict[str, Union[str, int, float, bytes]]] = None,
262-
) -> Result | Pipeline | ProfileInformation:
262+
) -> Union[Result, Pipeline, ProfileInformation]:
263263
args, query = client._mk_query_args(query, query_params=query_params)
264264
st = time.monotonic()
265265

@@ -282,7 +282,7 @@ async def async_cluster_search(
282282
client: AsyncSearch,
283283
query: Union[str, Query],
284284
query_params: Optional[Dict[str, Union[str, int, float, bytes]]] = None,
285-
) -> Result | Pipeline | ProfileInformation:
285+
) -> Union[Result, Pipeline, ProfileInformation]:
286286
args, query = client._mk_query_args(query, query_params=query_params)
287287
st = time.monotonic()
288288

0 commit comments

Comments
 (0)