typing.py 301 B

123456789101112131415161718192021
  1. from __future__ import annotations
  2. from collections.abc import Callable, Generator, Sequence
  3. from typing import (
  4. ParamSpec,
  5. TypeVar,
  6. cast,
  7. )
  8. R = TypeVar("R")
  9. P = ParamSpec("P")
  10. __all__ = [
  11. "Callable",
  12. "Generator",
  13. "P",
  14. "R",
  15. "Sequence",
  16. "TypeVar",
  17. "cast",
  18. ]