Initial configuration commit
This commit is contained in:
commit
31c8abea59
266 changed files with 780274 additions and 0 deletions
47
typings/numpy/lib/arrayterator.pyi
Normal file
47
typings/numpy/lib/arrayterator.pyi
Normal file
|
@ -0,0 +1,47 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from collections.abc import Generator
|
||||
from typing import Any, TypeVar, Union, overload
|
||||
from numpy import dtype, generic, ndarray
|
||||
from numpy._typing import DTypeLike
|
||||
|
||||
_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]
|
||||
class Arrayterator(ndarray[_Shape, _DType]):
|
||||
var: ndarray[_Shape, _DType]
|
||||
buf_size: None | int
|
||||
start: list[int]
|
||||
stop: list[int]
|
||||
step: list[int]
|
||||
@property
|
||||
def shape(self) -> tuple[int, ...]:
|
||||
...
|
||||
|
||||
@property
|
||||
def flat(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]:
|
||||
...
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue