summaryrefslogtreecommitdiffstats
path: root/g4f/typing.py
blob: 2a9396a88829e7e7749737f36266e2b5024c45fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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]

__all__ = [
    'Any',
    'AsyncGenerator',
    'CreateResult',
    'Generator',
    'SHA256',
    'Tuple',
    'TypedDict',
    'Union',
]