Your IP : 216.73.216.74


Current Path : /proc/self/root/usr/local/python-3.13/lib/python3.13/site-packages/numpy/_core/
Upload File :
Current File : //proc/self/root/usr/local/python-3.13/lib/python3.13/site-packages/numpy/_core/printoptions.pyi

from collections.abc import Callable
from contextvars import ContextVar
from typing import Any, Final, TypedDict

from .arrayprint import _FormatDict

__all__ = ["format_options"]

###

class _FormatOptionsDict(TypedDict):
    edgeitems: int
    threshold: int
    floatmode: str
    precision: int
    suppress: bool
    linewidth: int
    nanstr: str
    infstr: str
    sign: str
    formatter: _FormatDict | None
    legacy: int
    override_repr: Callable[[Any], str] | None

###

default_format_options_dict: Final[_FormatOptionsDict] = ...
format_options: ContextVar[_FormatOptionsDict]