返回提交历史
Modified
g4f/typing.py
+8
-2
Modified
requirements.txt
+1
-0
XFEstudio/gpt4free
Fix: `TypedDict` from `typing` error #886
Ref: https://github.com/python/typeshed/issues/3500
8ad46284
代码差异
2 个文件
+9
-2
@@ -1,4 +1,10 @@
1
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, TypedDict, Union
1
import sys
2
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union
3
4
if sys.version_info >= (3, 8):
5
from typing import TypedDict
6
else:
7
from typing_extensions import TypedDict
2
8
3
9
SHA256 = NewType('sha_256_hash', str)
4
10
CreateResult = Generator[str, None, None]
@@ -11,4 +17,4 @@ __all__ = [
11
17
'TypedDict',
12
18
'SHA256',
13
19
'CreateResult',
14
]
20
]
@@ -9,3 +9,4 @@ js2py
9
9
quickjs
10
10
flask
11
11
flask-cors
12
typing-extensions