1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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]