printoptions.pyi 594 B

12345678910111213141516171819202122232425262728
  1. from collections.abc import Callable
  2. from contextvars import ContextVar
  3. from typing import Any, Final, TypedDict
  4. from .arrayprint import _FormatDict
  5. __all__ = ["format_options"]
  6. ###
  7. class _FormatOptionsDict(TypedDict):
  8. edgeitems: int
  9. threshold: int
  10. floatmode: str
  11. precision: int
  12. suppress: bool
  13. linewidth: int
  14. nanstr: str
  15. infstr: str
  16. sign: str
  17. formatter: _FormatDict | None
  18. legacy: int
  19. override_repr: Callable[[Any], str] | None
  20. ###
  21. default_format_options_dict: Final[_FormatOptionsDict] = ...
  22. format_options: ContextVar[_FormatOptionsDict]