From 38429a133ec79ce7db142115fc7da642aa82a84a Mon Sep 17 00:00:00 2001 From: Junyan Qin <1010553892@qq.com> Date: Tue, 26 Sep 2023 13:46:48 +0000 Subject: [PATCH] fix: type hints syntax --- src/hugchat/hugchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hugchat/hugchat.py b/src/hugchat/hugchat.py index cd86ee5..6a7c5d8 100644 --- a/src/hugchat/hugchat.py +++ b/src/hugchat/hugchat.py @@ -491,7 +491,7 @@ def query( use_cache: bool=False, is_retry: bool=False, retry_count: int=5, - ) -> typing.Generator[dict, None, None] | dict: + ) -> typing.Union[typing.Generator[dict, None, None], dict]: if stream: return self._stream_query_filter( text,