typing.py 398 B

1234567891011
  1. from datetime import date, datetime, timedelta
  2. from typing import Sequence, TypeVar, Union
  3. try:
  4. from typing import Literal # type: ignore
  5. except ImportError:
  6. from typing_extensions import Literal # type: ignore
  7. DateParseType = Union[date, datetime, timedelta, str, int]
  8. HueType = TypeVar("HueType", str, float, Sequence[int])
  9. GenderType = TypeVar("GenderType", bound=Literal["M", "F"])