diff options
author | Mitchell Faas <Faas.Mitchell@gmail.com> | 2021-02-01 12:35:15 +0100 |
---|---|---|
committer | Mitchell Faas <Faas.Mitchell@gmail.com> | 2021-02-01 12:35:15 +0100 |
commit | 472e5e01be709a0b40a727f97208a8222c4b28ef (patch) | |
tree | 4a942d0185c1c447ea3c2a0a934861a364e468a9 /numpy/core/arrayprint.pyi | |
parent | 3e285e43b4e430b29711e53cded86eab00f85db2 (diff) | |
download | numpy-472e5e01be709a0b40a727f97208a8222c4b28ef.tar.gz |
MAINT: Updated annotations
Diffstat (limited to 'numpy/core/arrayprint.pyi')
-rw-r--r-- | numpy/core/arrayprint.pyi | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/core/arrayprint.pyi b/numpy/core/arrayprint.pyi index b2565b345..d2a5fdef9 100644 --- a/numpy/core/arrayprint.pyi +++ b/numpy/core/arrayprint.pyi @@ -24,9 +24,9 @@ from numpy import ( from numpy.typing import ArrayLike, _CharLike_co, _FloatLike_co if sys.version_info > (3, 8): - from typing import Literal, TypedDict + from typing import Literal, TypedDict, SupportsIndex else: - from typing_extensions import Literal, TypedDict + from typing_extensions import Literal, TypedDict, SupportsIndex _FloatMode = Literal["fixed", "unique", "maxprec", "maxprec_equal"] @@ -62,7 +62,7 @@ class _FormatOptions(TypedDict): legacy: Literal[False, "1.13"] def set_printoptions( - precision: Optional[int] = ..., + precision: Optional[SupportsIndex] = ..., threshold: Optional[int] = ..., edgeitems: Optional[int] = ..., linewidth: Optional[int] = ..., @@ -79,7 +79,7 @@ def get_printoptions() -> _FormatOptions: ... def array2string( a: ndarray[Any, Any], max_line_width: Optional[int] = ..., - precision: Optional[int] = ..., + precision: Optional[SupportsIndex] = ..., suppress_small: Optional[bool] = ..., separator: str = ..., prefix: str = ..., @@ -117,20 +117,20 @@ def format_float_positional( def array_repr( arr: ndarray[Any, Any], max_line_width: Optional[int] = ..., - precision: Optional[int] = ..., + precision: Optional[SupportsIndex] = ..., suppress_small: Optional[bool] = ..., ) -> str: ... def array_str( a: ndarray[Any, Any], max_line_width: Optional[int] = ..., - precision: Optional[int] = ..., + precision: Optional[SupportsIndex] = ..., suppress_small: Optional[bool] = ..., ) -> str: ... def set_string_function( f: Optional[Callable[[ndarray[Any, Any]], str]], repr: bool = ... ) -> None: ... def printoptions( - precision: Optional[int] = ..., + precision: Optional[SupportsIndex] = ..., threshold: Optional[int] = ..., edgeitems: Optional[int] = ..., linewidth: Optional[int] = ..., |