Generateurv2/backend/env/lib/python3.10/site-packages/faker/typing.py
2022-06-24 17:14:37 +02:00

13 lines
456 B
Python

from datetime import date, datetime, timedelta
from typing import Sequence, TypeVar, Union
try:
from typing import Literal # type: ignore
except ImportError:
from typing_extensions import Literal # type: ignore
DateParseType = Union[date, datetime, timedelta, str, int]
HueType = TypeVar("HueType", str, float, Sequence[int])
GenderType = TypeVar("GenderType", bound=Literal["M", "F"])
SeedType = Union[int, float, str, bytes, bytearray, None]