2023-09-11 10:29:48 +03:00
|
|
|
import sys
|
2023-10-08 14:59:56 +03:00
|
|
|
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union, List, Dict
|
2023-09-11 10:29:48 +03:00
|
|
|
|
|
|
|
if sys.version_info >= (3, 8):
|
|
|
|
from typing import TypedDict
|
|
|
|
else:
|
|
|
|
from typing_extensions import TypedDict
|
2023-06-24 04:47:00 +03:00
|
|
|
|
2023-08-27 18:37:44 +03:00
|
|
|
SHA256 = NewType('sha_256_hash', str)
|
2023-07-28 13:07:17 +03:00
|
|
|
CreateResult = Generator[str, None, None]
|
2023-10-08 15:31:46 +03:00
|
|
|
AsyncResult = AsyncGenerator[str, None]
|
2023-10-08 14:59:56 +03:00
|
|
|
Messages = List[Dict[str, str]]
|
2023-07-28 13:07:17 +03:00
|
|
|
|
|
|
|
__all__ = [
|
2023-08-27 18:37:44 +03:00
|
|
|
'Any',
|
|
|
|
'AsyncGenerator',
|
|
|
|
'Generator',
|
|
|
|
'Tuple',
|
|
|
|
'TypedDict',
|
2023-09-18 00:23:54 +03:00
|
|
|
'SHA256',
|
|
|
|
'CreateResult',
|
2023-09-11 10:29:48 +03:00
|
|
|
]
|