/opt/imh-python/lib/python3.9/site-packages/numpy/lib
NameSizeModeActions
tests/-0755rm
__pycache__/-0755rm
arraypad.py318030644editdlrm
arraypad.pyi17280644editdlrm
arraysetops.py336550644editdlrm
arraysetops.pyi83720644editdlrm
arrayterator.py70630644editdlrm
arrayterator.pyi15370644editdlrm
format.py347690644editdlrm
format.pyi7480644editdlrm
function_base.py1891030644editdlrm
function_base.pyi165850644editdlrm
histograms.py377780644editdlrm
histograms.pyi9950644editdlrm
index_tricks.py313460644editdlrm
index_tricks.pyi42510644editdlrm
mixins.py70710644editdlrm
mixins.pyi31170644editdlrm
nanfunctions.py657750644editdlrm
nanfunctions.pyi6060644editdlrm
npyio.py973160644editdlrm
npyio.pyi97280644editdlrm
polynomial.py441330644editdlrm
polynomial.pyi69580644editdlrm
recfunctions.py594230644editdlrm
scimath.py150370644editdlrm
scimath.pyi28830644editdlrm
setup.py4050644editdlrm
shape_base.py389470644editdlrm
shape_base.pyi53410644editdlrm
stride_tricks.py179110644editdlrm
stride_tricks.pyi17470644editdlrm
twodim_base.py329470644editdlrm
twodim_base.pyi53700644editdlrm
type_check.py199540644editdlrm
type_check.pyi55710644editdlrm
ufunclike.py63250644editdlrm
ufunclike.pyi12930644editdlrm
user_array.py77210644editdlrm
utils.py378040644editdlrm
utils.pyi23600644editdlrm
_datasource.py226310644editdlrm
_iotools.py308680644editdlrm
_version.py48550644editdlrm
_version.pyi6330644editdlrm
__init__.py27130644editdlrm
__init__.pyi55960644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/numpy/lib/arrayterator.pyi (1537B)
from collections.abc import Generator from typing import ( Any, TypeVar, Union, overload, ) from numpy import ndarray, dtype, generic from numpy._typing import DTypeLike # TODO: Set a shape bound once we've got proper shape support _Shape = TypeVar("_Shape", bound=Any) _DType = TypeVar("_DType", bound=dtype[Any]) _ScalarType = TypeVar("_ScalarType", bound=generic) _Index = Union[ Union[ellipsis, int, slice], tuple[Union[ellipsis, int, slice], ...], ] __all__: list[str] # NOTE: In reality `Arrayterator` does not actually inherit from `ndarray`, # but its ``__getattr__` method does wrap around the former and thus has # access to all its methods class Arrayterator(ndarray[_Shape, _DType]): var: ndarray[_Shape, _DType] # type: ignore[assignment] buf_size: None | int start: list[int] stop: list[int] step: list[int] @property # type: ignore[misc] def shape(self) -> tuple[int, ...]: ... @property def flat( # type: ignore[override] self: ndarray[Any, dtype[_ScalarType]] ) -> Generator[_ScalarType, None, None]: ... def __init__( self, var: ndarray[_Shape, _DType], buf_size: None | int = ... ) -> None: ... @overload def __array__(self, dtype: None = ...) -> ndarray[Any, _DType]: ... @overload def __array__(self, dtype: DTypeLike) -> ndarray[Any, dtype[Any]]: ... def __getitem__(self, index: _Index) -> Arrayterator[Any, _DType]: ... def __iter__(self) -> Generator[ndarray[Any, _DType], None, None]: ...