json.pyi 484 B

1234567891011121314151617181920212223
  1. from typing import (
  2. Any,
  3. Callable,
  4. )
  5. def dumps(
  6. obj: Any,
  7. ensure_ascii: bool = ...,
  8. double_precision: int = ...,
  9. indent: int = ...,
  10. orient: str = ...,
  11. date_unit: str = ...,
  12. iso_dates: bool = ...,
  13. default_handler: None
  14. | Callable[[Any], str | float | bool | list | dict | None] = ...,
  15. ) -> str: ...
  16. def loads(
  17. s: str,
  18. precise_float: bool = ...,
  19. numpy: bool = ...,
  20. dtype: None = ...,
  21. labelled: bool = ...,
  22. ) -> Any: ...