Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
printoptions.pyi29 linesDownload Raw Back to _core
1from collections.abc import Callable
2from contextvars import ContextVar
3from typing import Any, Final, TypedDict
4
5from .arrayprint import _FormatDict
6
7__all__ = ["format_options"]
8
9###
10
11class _FormatOptionsDict(TypedDict):
12    edgeitems: int
13    threshold: int
14    floatmode: str
15    precision: int
16    suppress: bool
17    linewidth: int
18    nanstr: str
19    infstr: str
20    sign: str
21    formatter: _FormatDict | None
22    legacy: int
23    override_repr: Callable[[Any], str] | None
24
25###
26
27default_format_options_dict: Final[_FormatOptionsDict] = ...
28format_options: ContextVar[_FormatOptionsDict]
29 
codekingpro/portable-devtools · Team Ai