mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 00:29:27 -04:00
~ | Merge pull request #891 from Lin-jun-xiang/fix-TypeDict-error
Fix: `TypedDict` from `typing` error #886
This commit is contained in:
commit
5e7ea0d8f2
@ -1,4 +1,10 @@
|
||||
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, TypedDict, Union
|
||||
import sys
|
||||
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from typing import TypedDict
|
||||
else:
|
||||
from typing_extensions import TypedDict
|
||||
|
||||
SHA256 = NewType('sha_256_hash', str)
|
||||
CreateResult = Generator[str, None, None]
|
||||
@ -11,4 +17,4 @@ __all__ = [
|
||||
'TypedDict',
|
||||
'SHA256',
|
||||
'CreateResult',
|
||||
]
|
||||
]
|
||||
|
@ -9,3 +9,4 @@ js2py
|
||||
quickjs
|
||||
flask
|
||||
flask-cors
|
||||
typing-extensions
|
||||
|
Loading…
Reference in New Issue
Block a user