Spaces:
Runtime error
Runtime error
File size: 678 Bytes
5415489 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
import sys
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union, List, Dict, Type, IO
from PIL.Image import Image
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]
AsyncResult = AsyncGenerator[str, None]
Messages = List[Dict[str, str]]
ImageType = Union[str, bytes, IO, Image, None]
__all__ = [
'Any',
'AsyncGenerator',
'Generator',
'Tuple',
'Union',
'List',
'Dict',
'Type',
'TypedDict',
'SHA256',
'CreateResult',
'AsyncResult',
'Messages',
'ImageType'
]
|