mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-23 09:10:13 +03:00
Fix: TypedDict
from typing
error #886
Ref: https://github.com/python/typeshed/issues/3500
This commit is contained in:
parent
1fc9ec91ea
commit
8ad46284b9
@ -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