types.py 255 B

123456789
  1. from typing import Literal, Union
  2. TypeJson = Union[
  3. dict[str, Union[str, int, bool, "TypeJson"]],
  4. list[Union[str, int, bool, "TypeJson"]],
  5. ]
  6. """Python object that is valid JSON (can be serialized to and from)"""
  7. MeID = Union[Literal["me"], int]