PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
numpy
/
lib
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]: ...
[-] arraysetops.pyi
[open]
[-] arraysetops.py
[open]
[-] user_array.py
[open]
[+]
..
[-] stride_tricks.pyi
[open]
[-] index_tricks.py
[open]
[-] format.py
[open]
[+]
__pycache__
[-] arrayterator.py
[open]
[+]
tests
[-] _version.py
[open]
[-] mixins.py
[open]
[-] npyio.pyi
[open]
[-] _version.pyi
[open]
[-] index_tricks.pyi
[open]
[-] ufunclike.pyi
[open]
[-] arrayterator.pyi
[open]
[-] _iotools.py
[open]
[-] ufunclike.py
[open]
[-] twodim_base.py
[open]
[-] type_check.py
[open]
[-] shape_base.py
[open]
[-] histograms.py
[open]
[-] stride_tricks.py
[open]
[-] arraypad.py
[open]
[-] __init__.pyi
[open]
[-] format.pyi
[open]
[-] polynomial.pyi
[open]
[-] twodim_base.pyi
[open]
[-] utils.py
[open]
[-] function_base.pyi
[open]
[-] recfunctions.py
[open]
[-] histograms.pyi
[open]
[-] utils.pyi
[open]
[-] function_base.py
[open]
[-] scimath.py
[open]
[-] type_check.pyi
[open]
[-] polynomial.py
[open]
[-] scimath.pyi
[open]
[-] __init__.py
[open]
[-] _datasource.py
[open]
[-] setup.py
[open]
[-] nanfunctions.pyi
[open]
[-] mixins.pyi
[open]
[-] arraypad.pyi
[open]
[-] nanfunctions.py
[open]
[-] npyio.py
[open]
[-] shape_base.pyi
[open]