diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-10-08 14:21:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 14:21:21 +0200 |
commit | d804b20694c8ffc88355adee610d1424a1df1263 (patch) | |
tree | 9750cb102284d9445d60c539f4e6d3586603e917 /g4f/typing.py | |
parent | ~ | `v-0.1.5.5` (diff) | |
parent | Add Messages and AsyncResult typing (diff) | |
download | gpt4free-d804b20694c8ffc88355adee610d1424a1df1263.tar gpt4free-d804b20694c8ffc88355adee610d1424a1df1263.tar.gz gpt4free-d804b20694c8ffc88355adee610d1424a1df1263.tar.bz2 gpt4free-d804b20694c8ffc88355adee610d1424a1df1263.tar.lz gpt4free-d804b20694c8ffc88355adee610d1424a1df1263.tar.xz gpt4free-d804b20694c8ffc88355adee610d1424a1df1263.tar.zst gpt4free-d804b20694c8ffc88355adee610d1424a1df1263.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/typing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/g4f/typing.py b/g4f/typing.py index 5f63c222..840e4624 100644 --- a/g4f/typing.py +++ b/g4f/typing.py @@ -1,5 +1,5 @@ import sys -from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union +from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union, List, Dict if sys.version_info >= (3, 8): from typing import TypedDict @@ -8,6 +8,8 @@ else: SHA256 = NewType('sha_256_hash', str) CreateResult = Generator[str, None, None] +AsyncResult = AsyncGenerator[str] +Messages = List[Dict[str, str]] __all__ = [ 'Any', |