__init__.pyi 728 B

1234567891011121314151617181920212223242526272829303132
  1. import json
  2. from typing import Any, Callable
  3. __version__: str
  4. def dumps(
  5. __obj: Any,
  6. default: Callable[[Any], Any] | None = ...,
  7. option: int | None = ...,
  8. ) -> bytes: ...
  9. def loads(__obj: bytes | bytearray | memoryview | str) -> Any: ...
  10. class JSONDecodeError(json.JSONDecodeError): ...
  11. class JSONEncodeError(TypeError): ...
  12. class Fragment(tuple):
  13. contents: bytes | str
  14. OPT_APPEND_NEWLINE: int
  15. OPT_INDENT_2: int
  16. OPT_NAIVE_UTC: int
  17. OPT_NON_STR_KEYS: int
  18. OPT_OMIT_MICROSECONDS: int
  19. OPT_PASSTHROUGH_DATACLASS: int
  20. OPT_PASSTHROUGH_DATETIME: int
  21. OPT_PASSTHROUGH_SUBCLASS: int
  22. OPT_SERIALIZE_DATACLASS: int
  23. OPT_SERIALIZE_NUMPY: int
  24. OPT_SERIALIZE_UUID: int
  25. OPT_SORT_KEYS: int
  26. OPT_STRICT_INTEGER: int
  27. OPT_UTC_Z: int