Skip to content

Commit

Permalink
Merge pull request #88 from RockChinQ/master
Browse files Browse the repository at this point in the history
Fix: type hints syntax
  • Loading branch information
Soulter authored Sep 27, 2023
2 parents b128540 + 38429a1 commit 059f308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hugchat/hugchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 059f308

Please sign in to comment.