diff --git a/src/numpy-stubs/@test/runtime/legacy/ndarray_conversion.py b/src/numpy-stubs/@test/runtime/legacy/ndarray_conversion.py index 76da1dad..a4e0bcf3 100644 --- a/src/numpy-stubs/@test/runtime/legacy/ndarray_conversion.py +++ b/src/numpy-stubs/@test/runtime/legacy/ndarray_conversion.py @@ -74,14 +74,8 @@ # setflags nd.setflags() - -nd.setflags(True) nd.setflags(write=True) - -nd.setflags(True, True) nd.setflags(write=True, align=True) - -nd.setflags(True, True, False) nd.setflags(write=True, align=True, uic=False) # fill is pretty simple diff --git a/src/numpy-stubs/__init__.pyi b/src/numpy-stubs/__init__.pyi index aace0757..9f792ab1 100644 --- a/src/numpy-stubs/__init__.pyi +++ b/src/numpy-stubs/__init__.pyi @@ -26,7 +26,7 @@ from typing import ( overload, type_check_only, ) -from typing_extensions import Buffer, CapsuleType, Protocol, TypeVar, deprecated, override +from typing_extensions import Buffer, CapsuleType, Protocol, TypeVar, override import _numtype as _nt @@ -332,7 +332,7 @@ from ._core.umath import ( vecmat, ) from ._expired_attrs_2_0 import __expired_attributes__ as __expired_attributes__ -from ._globals import _CopyMode as _CopyMode, _NoValue as _NoValue +from ._globals import _CopyMode as _CopyMode, _NoValue as _NoValue, _NoValueType from ._pytesttester import PytestTester from ._typing import ( ArrayLike, @@ -1324,20 +1324,18 @@ class _ArrayOrScalarCommon: # def dump(self, file: StrOrBytesPath | SupportsWrite[bytes]) -> None: ... def dumps(self) -> bytes: ... - @deprecated("tostring() is deprecated. Use tobytes() instead.") - def tostring(self, order: _OrderKACF = "C") -> bytes: ... def tobytes(self, order: _OrderKACF = "C") -> bytes: ... - def tofile(self, fid: StrOrBytesPath | _CanSeekTellFileNo, sep: str = ..., format: str = ...) -> None: ... + def tofile(self, fid: StrOrBytesPath | _CanSeekTellFileNo, /, sep: str = "", format: str = "%s") -> None: ... def tolist(self) -> Any: ... def to_device(self, device: _Device, /, *, stream: int | Any | None = ...) -> Self: ... # NOTE: for `generic`, these two methods don't do anything - def fill(self, value: _ScalarLike_co, /) -> None: ... - def put(self, /, indices: _nt.CoInteger_nd, values: ArrayLike, mode: _ModeKind = "raise") -> None: ... + def fill(self, /, value: _ScalarLike_co) -> None: ... + def put(self, indices: _nt.CoInteger_nd, values: ArrayLike, /, mode: _ModeKind = "raise") -> None: ... # NOTE: even on `generic` this seems to work def setflags( - self, /, write: py_bool | None = None, align: py_bool | None = None, uic: py_bool | None = None + self, /, *, write: py_bool | None = None, align: py_bool | None = None, uic: py_bool | None = None ) -> None: ... # @@ -1351,9 +1349,10 @@ class _ArrayOrScalarCommon: /, axis: _ShapeLike | None = None, out: None = None, - keepdims: py_bool = False, - initial: _NumberLike_co = ..., - where: _nt.ToBool_nd = True, + *, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> Incomplete: ... @overload def max( @@ -1361,9 +1360,10 @@ class _ArrayOrScalarCommon: /, axis: _ShapeLike | None, out: _ArrayT, - keepdims: py_bool = False, - initial: _NumberLike_co = ..., - where: _nt.ToBool_nd = True, + *, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... @overload def max( @@ -1372,9 +1372,9 @@ class _ArrayOrScalarCommon: axis: _ShapeLike | None = None, *, out: _ArrayT, - keepdims: py_bool = False, - initial: _NumberLike_co = ..., - where: _nt.ToBool_nd = True, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... # @@ -1394,9 +1394,10 @@ class _ArrayOrScalarCommon: /, axis: _ShapeLike | None = None, out: None = None, - keepdims: py_bool = False, - initial: _NumberLike_co = ..., - where: _nt.ToBool_nd = True, + *, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> Incomplete: ... @overload def min( @@ -1404,9 +1405,10 @@ class _ArrayOrScalarCommon: /, axis: _ShapeLike | None, out: _ArrayT, - keepdims: py_bool = False, - initial: _NumberLike_co = ..., - where: _nt.ToBool_nd = True, + *, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... @overload def min( @@ -1415,9 +1417,9 @@ class _ArrayOrScalarCommon: axis: _ShapeLike | None = None, *, out: _ArrayT, - keepdims: py_bool = False, - initial: _NumberLike_co = ..., - where: _nt.ToBool_nd = True, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... # @@ -1489,9 +1491,10 @@ class _ArrayOrScalarCommon: axis: _ShapeLike | None = None, dtype: DTypeLike | None = None, out: None = None, - keepdims: py_bool = False, - initial: _NumberLike_co = 0, - where: _nt.ToBool_nd = True, + *, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> Any: ... @overload def sum( @@ -1500,9 +1503,10 @@ class _ArrayOrScalarCommon: axis: _ShapeLike | None, dtype: DTypeLike | None, out: _ArrayT, - keepdims: py_bool = False, - initial: _NumberLike_co = 0, - where: _nt.ToBool_nd = True, + *, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... @overload def sum( @@ -1512,9 +1516,9 @@ class _ArrayOrScalarCommon: dtype: DTypeLike | None = None, *, out: _ArrayT, - keepdims: py_bool = False, - initial: _NumberLike_co = 0, - where: _nt.ToBool_nd = True, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... # @@ -1535,9 +1539,10 @@ class _ArrayOrScalarCommon: axis: _ShapeLike | None = None, dtype: DTypeLike | None = None, out: None = None, - keepdims: py_bool = False, - initial: _NumberLike_co = 1, - where: _nt.ToBool_nd = True, + *, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> Any: ... @overload def prod( @@ -1546,9 +1551,10 @@ class _ArrayOrScalarCommon: axis: _ShapeLike | None, dtype: DTypeLike | None, out: _ArrayT, - keepdims: py_bool = False, - initial: _NumberLike_co = 1, - where: _nt.ToBool_nd = True, + *, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... @overload def prod( @@ -1558,9 +1564,9 @@ class _ArrayOrScalarCommon: dtype: DTypeLike | None = None, *, out: _ArrayT, - keepdims: py_bool = False, - initial: _NumberLike_co = 1, - where: _nt.ToBool_nd = True, + keepdims: py_bool | _NoValueType = ..., + initial: _NumberLike_co | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... # @@ -1570,9 +1576,9 @@ class _ArrayOrScalarCommon: axis: _ShapeLike | None = None, dtype: DTypeLike | None = None, out: None = None, - keepdims: py_bool = False, *, - where: _nt.ToBool_nd = True, + keepdims: py_bool | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> Any: ... @overload def mean( @@ -1581,9 +1587,9 @@ class _ArrayOrScalarCommon: axis: _ShapeLike | None, dtype: DTypeLike | None, out: _ArrayT, - keepdims: py_bool = False, *, - where: _nt.ToBool_nd = True, + keepdims: py_bool | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... @overload def mean( @@ -1593,8 +1599,8 @@ class _ArrayOrScalarCommon: dtype: DTypeLike | None = None, *, out: _ArrayT, - keepdims: py_bool = False, - where: _nt.ToBool_nd = True, + keepdims: py_bool | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., ) -> _ArrayT: ... # @@ -1605,11 +1611,11 @@ class _ArrayOrScalarCommon: dtype: DTypeLike | None = None, out: None = None, ddof: float = 0, - keepdims: py_bool = False, *, - where: _nt.ToBool_nd = True, - mean: _nt.CoComplex_nd = ..., - correction: float = ..., + keepdims: py_bool | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., + mean: _nt.CoComplex_nd | _NoValueType = ..., + correction: float | _NoValueType = ..., ) -> Any: ... @overload def std( @@ -1618,11 +1624,11 @@ class _ArrayOrScalarCommon: dtype: DTypeLike | None, out: _ArrayT, ddof: float = 0, - keepdims: py_bool = False, *, - where: _nt.ToBool_nd = True, - mean: _nt.CoComplex_nd = ..., - correction: float = ..., + keepdims: py_bool | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., + mean: _nt.CoComplex_nd | _NoValueType = ..., + correction: float | _NoValueType = ..., ) -> _ArrayT: ... @overload def std( @@ -1632,10 +1638,10 @@ class _ArrayOrScalarCommon: *, out: _ArrayT, ddof: float = 0, - keepdims: py_bool = False, - where: _nt.ToBool_nd = True, - mean: _nt.CoComplex_nd = ..., - correction: float = ..., + keepdims: py_bool | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., + mean: _nt.CoComplex_nd | _NoValueType = ..., + correction: float | _NoValueType = ..., ) -> _ArrayT: ... # @@ -1646,11 +1652,11 @@ class _ArrayOrScalarCommon: dtype: DTypeLike | None = None, out: None = None, ddof: float = 0, - keepdims: py_bool = False, *, - where: _nt.ToBool_nd = True, - mean: _nt.CoComplex_nd = ..., - correction: float = ..., + keepdims: py_bool | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., + mean: _nt.CoComplex_nd | _NoValueType = ..., + correction: float | _NoValueType = ..., ) -> Any: ... @overload def var( @@ -1659,11 +1665,11 @@ class _ArrayOrScalarCommon: dtype: DTypeLike | None, out: _ArrayT, ddof: float = 0, - keepdims: py_bool = False, *, - where: _nt.ToBool_nd = True, - mean: _nt.CoComplex_nd = ..., - correction: float = ..., + keepdims: py_bool | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., + mean: _nt.CoComplex_nd | _NoValueType = ..., + correction: float | _NoValueType = ..., ) -> _ArrayT: ... @overload def var( @@ -1673,10 +1679,10 @@ class _ArrayOrScalarCommon: *, out: _ArrayT, ddof: float = 0, - keepdims: py_bool = False, - where: _nt.ToBool_nd = True, - mean: _nt.CoComplex_nd = ..., - correction: float = ..., + keepdims: py_bool | _NoValueType = ..., + where: _nt.ToBool_nd | _NoValueType = ..., + mean: _nt.CoComplex_nd | _NoValueType = ..., + correction: float | _NoValueType = ..., ) -> _ArrayT: ... # @@ -2753,7 +2759,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]): ) -> None: ... # - def swapaxes(self, /, axis1: CanIndex, axis2: CanIndex) -> Self: ... + def swapaxes(self, axis1: CanIndex, axis2: CanIndex, /) -> Self: ... def squeeze(self, /, axis: CanIndex | tuple[CanIndex, ...] | None = None) -> ndarray[_nt.AnyShape, _DTypeT_co]: ... def byteswap(self, /, inplace: py_bool = False) -> Self: ... @@ -2846,6 +2852,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]): def argpartition( self, kth: _nt.CoInteger_nd, + /, axis: CanIndex | None = ..., kind: _PartitionKind = ..., order: str | Sequence[str] | None = ..., @@ -2853,11 +2860,11 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]): # 1D + 1D returns a scalar; # all other with at least 1 non-0D array return an ndarray. @overload - def dot(self, b: _ScalarLike_co, out: None = ...) -> _nt.Array: ... + def dot(self, b: _ScalarLike_co, /, out: None = ...) -> _nt.Array: ... @overload - def dot(self, b: ArrayLike, out: None = ...) -> Any: ... + def dot(self, b: ArrayLike, /, out: None = ...) -> Any: ... @overload - def dot(self, b: ArrayLike, out: _ArrayT) -> _ArrayT: ... + def dot(self, b: ArrayLike, /, out: _ArrayT) -> _ArrayT: ... # `nonzero()` is deprecated for 0d arrays/generics def nonzero(self) -> tuple[_nt.Array[intp], ...]: ... @@ -2865,19 +2872,19 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]): # @overload def searchsorted( - self, /, v: _ScalarLike_co, side: _SortSide = "left", sorter: _nt.CoInteger_nd | None = None + self, v: _ScalarLike_co, /, side: _SortSide = "left", sorter: _nt.CoInteger_nd | None = None ) -> intp: ... @overload def searchsorted( - self, /, v: ndarray[_ShapeT], side: _SortSide = "left", sorter: _nt.CoInteger_nd | None = None + self, v: ndarray[_ShapeT], /, side: _SortSide = "left", sorter: _nt.CoInteger_nd | None = None ) -> _nt.Array[intp, _ShapeT]: ... @overload def searchsorted( - self, /, v: _NestedSequence[_ScalarLike_co], side: _SortSide = "left", sorter: _nt.CoInteger_nd | None = None + self, v: _NestedSequence[_ScalarLike_co], /, side: _SortSide = "left", sorter: _nt.CoInteger_nd | None = None ) -> _nt.Array[intp]: ... @overload def searchsorted( - self, /, v: ArrayLike, side: _SortSide = "left", sorter: _nt.CoInteger_nd | None = None + self, v: ArrayLike, /, side: _SortSide = "left", sorter: _nt.CoInteger_nd | None = None ) -> intp | _nt.Array[intp]: ... # @@ -2929,13 +2936,13 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]): # @overload def partition( - self, /, kth: _nt.CoInteger_nd, axis: CanIndex = -1, kind: _PartitionKind = "introselect", order: None = None + self, kth: _nt.CoInteger_nd, /, axis: CanIndex = -1, kind: _PartitionKind = "introselect", order: None = None ) -> None: ... @overload def partition( self: _nt.Array[void, Any], - /, kth: _nt.CoInteger_nd, + /, axis: CanIndex = -1, kind: _PartitionKind = "introselect", order: str | Sequence[str] | None = None, @@ -3003,31 +3010,31 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]): @overload def take( self: _nt.Array[_ScalarT], - /, indices: _nt.CoInteger_0d, + /, axis: CanIndex | None = None, out: None = None, mode: _ModeKind = "raise", ) -> _ScalarT: ... @overload def take( - self, /, indices: _nt.CoInteger_nd, axis: CanIndex | None = None, out: None = None, mode: _ModeKind = "raise" + self, indices: _nt.CoInteger_nd, /, axis: CanIndex | None = None, out: None = None, mode: _ModeKind = "raise" ) -> ndarray[_nt.AnyShape, _DTypeT_co]: ... @overload def take( - self, /, indices: _nt.CoInteger_nd, axis: CanIndex | None, out: _ArrayT, mode: _ModeKind = "raise" + self, indices: _nt.CoInteger_nd, /, axis: CanIndex | None, out: _ArrayT, mode: _ModeKind = "raise" ) -> _ArrayT: ... @overload def take( - self, /, indices: _nt.CoInteger_nd, axis: CanIndex | None = None, *, out: _ArrayT, mode: _ModeKind = "raise" + self, indices: _nt.CoInteger_nd, /, axis: CanIndex | None = None, *, out: _ArrayT, mode: _ModeKind = "raise" ) -> _ArrayT: ... # @overload - def repeat(self, /, repeats: _nt.CoInteger_nd, axis: None = None) -> ndarray[_nt.Rank1, _DTypeT_co]: ... + def repeat(self, repeats: _nt.CoInteger_nd, /, axis: None = None) -> ndarray[_nt.Rank1, _DTypeT_co]: ... @overload def repeat( - self: ndarray[_AnyShapeT, _DTypeT], /, repeats: _nt.CoInteger_nd, axis: CanIndex + self: ndarray[_AnyShapeT, _DTypeT], repeats: _nt.CoInteger_nd, /, axis: CanIndex ) -> ndarray[_AnyShapeT, _DTypeT]: ... # @@ -3180,7 +3187,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]): def getfield(self, /, dtype: DTypeLike, offset: CanIndex = 0) -> _nt.Array: ... # - def setfield(self, /, val: ArrayLike, dtype: DTypeLike, offset: CanIndex = 0) -> None: ... + def setfield(self, val: ArrayLike, /, dtype: DTypeLike, offset: CanIndex = 0) -> None: ... # keep `dtype` at the bottom to avoid shadowing @property @@ -3281,23 +3288,22 @@ class generic(_ArrayOrScalarCommon, Generic[_ItemT_co]): # NOTE: these technically exist, but will always raise when called def trace( # type: ignore[misc] - self: Never, - /, - offset: Never = ..., - axis1: Never = ..., - axis2: Never = ..., - dtype: Never = ..., - out: Never = ..., + self: Never, /, offset: L[0] = 0, axis1: L[0] = 0, axis2: L[1] = 1, dtype: None = None, out: None = None + ) -> Never: ... + def diagonal(self: Never, /, offset: L[0] = 0, axis1: L[0] = 0, axis2: L[1] = 1) -> Never: ... # type: ignore[misc] + def swapaxes(self: Never, axis1: Never, axis2: Never, /) -> Never: ... # type: ignore[misc] + def sort( # type: ignore[misc] + self: Never, /, axis: L[-1] = -1, kind: None = None, order: None = None, *, stable: None = None ) -> Never: ... - def diagonal(self: Never, /, offset: Never = ..., axis1: Never = ..., axis2: Never = ...) -> Never: ... # type: ignore[misc] - def swapaxes(self: Never, /, axis1: Never, axis2: Never) -> Never: ... # type: ignore[misc] - def sort(self: Never, /, axis: Never = ..., kind: Never = ..., order: Never = ...) -> Never: ... # type: ignore[misc] def nonzero(self: Never, /) -> Never: ... # type: ignore[misc] - def setfield(self: Never, /, val: Never, dtype: Never, offset: Never = ...) -> None: ... # type: ignore[misc] - def searchsorted(self: Never, /, v: Never, side: Never = ..., sorter: Never = ...) -> Never: ... # type: ignore[misc] + def setfield(self: Never, val: Never, /, dtype: Never, offset: L[0] = 0) -> None: ... # type: ignore[misc] + def searchsorted(self: Never, v: Never, /, side: L["left"] = "left", sorter: None = None) -> Never: ... # type: ignore[misc] # NOTE: this wont't raise, but won't do anything either - def resize(self, new_shape: L[0, -1] | tuple[L[0, -1]] | tuple[()], /, *, refcheck: py_bool = False) -> None: ... + @overload + def resize(self, /, *, refcheck: py_bool = True) -> None: ... + @overload + def resize(self, new_shape: L[0, -1] | tuple[L[0, -1]] | tuple[()], /, *, refcheck: py_bool = True) -> None: ... # def byteswap(self, /, inplace: L[False] = False) -> Self: ... @@ -3349,28 +3355,28 @@ class generic(_ArrayOrScalarCommon, Generic[_ItemT_co]): # @overload def take( - self, /, indices: _nt.CoInteger_0d, axis: CanIndex | None = None, out: None = None, mode: _ModeKind = "raise" + self, indices: _nt.CoInteger_0d, /, axis: CanIndex | None = None, out: None = None, mode: _ModeKind = "raise" ) -> Self: ... @overload def take( self, - /, indices: _NestedSequence[CanIndex], + /, axis: CanIndex | None = None, out: None = None, mode: _ModeKind = "raise", ) -> _nt.Array[Self]: ... @overload def take( - self, /, indices: _nt.CoInteger_nd, axis: CanIndex | None, out: _ArrayT, mode: _ModeKind = "raise" + self, indices: _nt.CoInteger_nd, /, axis: CanIndex | None, out: _ArrayT, mode: _ModeKind = "raise" ) -> _ArrayT: ... @overload def take( - self, /, indices: _nt.CoInteger_nd, axis: CanIndex | None = None, *, out: _ArrayT, mode: _ModeKind = "raise" + self, indices: _nt.CoInteger_nd, /, axis: CanIndex | None = None, *, out: _ArrayT, mode: _ModeKind = "raise" ) -> _ArrayT: ... # - def repeat(self, /, repeats: _nt.CoInteger_nd, axis: CanIndex | None = None) -> _nt.Array[Self]: ... + def repeat(self, repeats: _nt.CoInteger_nd, /, axis: CanIndex | None = None) -> _nt.Array[Self]: ... # def flatten(self, /, order: _OrderKACF = "C") -> _nt.Array1D[Self]: ... @@ -5020,7 +5026,7 @@ class void(flexible[bytes | tuple[Any, ...]]): # type: ignore[misc] # pyright: def __getitem__(self, key: list[str], /) -> void: ... def __setitem__(self, key: str | list[str] | CanIndex, value: ArrayLike, /) -> None: ... @override - def setfield(self, val: ArrayLike, dtype: DTypeLike, offset: int = ...) -> None: ... + def setfield(self, val: ArrayLike, dtype: DTypeLike, offset: int = 0) -> None: ... # @property diff --git a/tool/allowlists/todo.txt b/tool/allowlists/todo.txt index 56e11913..b6c58124 100644 --- a/tool/allowlists/todo.txt +++ b/tool/allowlists/todo.txt @@ -63,26 +63,6 @@ numpy._core.frombuffer numpy._core.fromfile numpy._core.fromiter numpy._core.fromnumeric.reshape -numpy._core.generic.diagonal -numpy._core.generic.fill -numpy._core.generic.max -numpy._core.generic.mean -numpy._core.generic.min -numpy._core.generic.prod -numpy._core.generic.put -numpy._core.generic.repeat -numpy._core.generic.resize -numpy._core.generic.searchsorted -numpy._core.generic.setfield -numpy._core.generic.setflags -numpy._core.generic.sort -numpy._core.generic.std -numpy._core.generic.sum -numpy._core.generic.swapaxes -numpy._core.generic.take -numpy._core.generic.tofile -numpy._core.generic.trace -numpy._core.generic.var numpy._core.getlimits.finfo.smallest_normal numpy._core.may_share_memory numpy._core.multiarray.arange @@ -101,47 +81,9 @@ numpy._core.multiarray.frombuffer numpy._core.multiarray.fromfile numpy._core.multiarray.fromiter numpy._core.multiarray.may_share_memory -numpy._core.multiarray.ndarray.argpartition -numpy._core.multiarray.ndarray.dot -numpy._core.multiarray.ndarray.fill -numpy._core.multiarray.ndarray.max -numpy._core.multiarray.ndarray.mean -numpy._core.multiarray.ndarray.min -numpy._core.multiarray.ndarray.partition -numpy._core.multiarray.ndarray.prod -numpy._core.multiarray.ndarray.put -numpy._core.multiarray.ndarray.repeat -numpy._core.multiarray.ndarray.searchsorted -numpy._core.multiarray.ndarray.setfield -numpy._core.multiarray.ndarray.setflags -numpy._core.multiarray.ndarray.std -numpy._core.multiarray.ndarray.sum -numpy._core.multiarray.ndarray.swapaxes -numpy._core.multiarray.ndarray.take -numpy._core.multiarray.ndarray.tofile -numpy._core.multiarray.ndarray.var numpy._core.multiarray.shares_memory numpy._core.multiarray.where numpy._core.multiarray.zeros -numpy._core.ndarray.argpartition -numpy._core.ndarray.dot -numpy._core.ndarray.fill -numpy._core.ndarray.max -numpy._core.ndarray.mean -numpy._core.ndarray.min -numpy._core.ndarray.partition -numpy._core.ndarray.prod -numpy._core.ndarray.put -numpy._core.ndarray.repeat -numpy._core.ndarray.searchsorted -numpy._core.ndarray.setfield -numpy._core.ndarray.setflags -numpy._core.ndarray.std -numpy._core.ndarray.sum -numpy._core.ndarray.swapaxes -numpy._core.ndarray.take -numpy._core.ndarray.tofile -numpy._core.ndarray.var numpy._core.numeric.arange numpy._core.numeric.array numpy._core.numeric.array2string @@ -161,46 +103,7 @@ numpy._core.numeric.from_dlpack numpy._core.numeric.frombuffer numpy._core.numeric.fromfile numpy._core.numeric.fromiter -numpy._core.numeric.generic.diagonal -numpy._core.numeric.generic.fill -numpy._core.numeric.generic.max -numpy._core.numeric.generic.mean -numpy._core.numeric.generic.min -numpy._core.numeric.generic.prod -numpy._core.numeric.generic.put -numpy._core.numeric.generic.repeat -numpy._core.numeric.generic.resize -numpy._core.numeric.generic.searchsorted -numpy._core.numeric.generic.setfield -numpy._core.numeric.generic.setflags -numpy._core.numeric.generic.sort -numpy._core.numeric.generic.std -numpy._core.numeric.generic.sum -numpy._core.numeric.generic.swapaxes -numpy._core.numeric.generic.take -numpy._core.numeric.generic.tofile -numpy._core.numeric.generic.trace -numpy._core.numeric.generic.var numpy._core.numeric.may_share_memory -numpy._core.numeric.ndarray.argpartition -numpy._core.numeric.ndarray.dot -numpy._core.numeric.ndarray.fill -numpy._core.numeric.ndarray.max -numpy._core.numeric.ndarray.mean -numpy._core.numeric.ndarray.min -numpy._core.numeric.ndarray.partition -numpy._core.numeric.ndarray.prod -numpy._core.numeric.ndarray.put -numpy._core.numeric.ndarray.repeat -numpy._core.numeric.ndarray.searchsorted -numpy._core.numeric.ndarray.setfield -numpy._core.numeric.ndarray.setflags -numpy._core.numeric.ndarray.std -numpy._core.numeric.ndarray.sum -numpy._core.numeric.ndarray.swapaxes -numpy._core.numeric.ndarray.take -numpy._core.numeric.ndarray.tofile -numpy._core.numeric.ndarray.var numpy._core.numeric.object_.__new__ numpy._core.numeric.reshape numpy._core.numeric.shares_memory @@ -211,26 +114,6 @@ numpy._core.numeric.zeros numpy._core.numerictypes.bool.__class_getitem__ numpy._core.numerictypes.bool_.__class_getitem__ numpy._core.numerictypes.datetime64.__class_getitem__ -numpy._core.numerictypes.generic.diagonal -numpy._core.numerictypes.generic.fill -numpy._core.numerictypes.generic.max -numpy._core.numerictypes.generic.mean -numpy._core.numerictypes.generic.min -numpy._core.numerictypes.generic.prod -numpy._core.numerictypes.generic.put -numpy._core.numerictypes.generic.repeat -numpy._core.numerictypes.generic.resize -numpy._core.numerictypes.generic.searchsorted -numpy._core.numerictypes.generic.setfield -numpy._core.numerictypes.generic.setflags -numpy._core.numerictypes.generic.sort -numpy._core.numerictypes.generic.std -numpy._core.numerictypes.generic.sum -numpy._core.numerictypes.generic.swapaxes -numpy._core.numerictypes.generic.take -numpy._core.numerictypes.generic.tofile -numpy._core.numerictypes.generic.trace -numpy._core.numerictypes.generic.var numpy._core.numerictypes.object_.__new__ numpy._core.numerictypes.void.__new__ numpy._core.object_.__new__ @@ -291,25 +174,6 @@ numpy.core.multiarray.frombuffer numpy.core.multiarray.fromfile numpy.core.multiarray.fromiter numpy.core.multiarray.may_share_memory -numpy.core.multiarray.ndarray.argpartition -numpy.core.multiarray.ndarray.dot -numpy.core.multiarray.ndarray.fill -numpy.core.multiarray.ndarray.max -numpy.core.multiarray.ndarray.mean -numpy.core.multiarray.ndarray.min -numpy.core.multiarray.ndarray.partition -numpy.core.multiarray.ndarray.prod -numpy.core.multiarray.ndarray.put -numpy.core.multiarray.ndarray.repeat -numpy.core.multiarray.ndarray.searchsorted -numpy.core.multiarray.ndarray.setfield -numpy.core.multiarray.ndarray.setflags -numpy.core.multiarray.ndarray.std -numpy.core.multiarray.ndarray.sum -numpy.core.multiarray.ndarray.swapaxes -numpy.core.multiarray.ndarray.take -numpy.core.multiarray.ndarray.tofile -numpy.core.multiarray.ndarray.var numpy.core.multiarray.shares_memory numpy.core.multiarray.where numpy.core.multiarray.zeros @@ -332,46 +196,7 @@ numpy.core.numeric.from_dlpack numpy.core.numeric.frombuffer numpy.core.numeric.fromfile numpy.core.numeric.fromiter -numpy.core.numeric.generic.diagonal -numpy.core.numeric.generic.fill -numpy.core.numeric.generic.max -numpy.core.numeric.generic.mean -numpy.core.numeric.generic.min -numpy.core.numeric.generic.prod -numpy.core.numeric.generic.put -numpy.core.numeric.generic.repeat -numpy.core.numeric.generic.resize -numpy.core.numeric.generic.searchsorted -numpy.core.numeric.generic.setfield -numpy.core.numeric.generic.setflags -numpy.core.numeric.generic.sort -numpy.core.numeric.generic.std -numpy.core.numeric.generic.sum -numpy.core.numeric.generic.swapaxes -numpy.core.numeric.generic.take -numpy.core.numeric.generic.tofile -numpy.core.numeric.generic.trace -numpy.core.numeric.generic.var numpy.core.numeric.may_share_memory -numpy.core.numeric.ndarray.argpartition -numpy.core.numeric.ndarray.dot -numpy.core.numeric.ndarray.fill -numpy.core.numeric.ndarray.max -numpy.core.numeric.ndarray.mean -numpy.core.numeric.ndarray.min -numpy.core.numeric.ndarray.partition -numpy.core.numeric.ndarray.prod -numpy.core.numeric.ndarray.put -numpy.core.numeric.ndarray.repeat -numpy.core.numeric.ndarray.searchsorted -numpy.core.numeric.ndarray.setfield -numpy.core.numeric.ndarray.setflags -numpy.core.numeric.ndarray.std -numpy.core.numeric.ndarray.sum -numpy.core.numeric.ndarray.swapaxes -numpy.core.numeric.ndarray.take -numpy.core.numeric.ndarray.tofile -numpy.core.numeric.ndarray.var numpy.core.numeric.object_.__new__ numpy.core.numeric.reshape numpy.core.numeric.shares_memory @@ -382,26 +207,6 @@ numpy.core.numeric.zeros numpy.core.numerictypes.bool.__class_getitem__ numpy.core.numerictypes.bool_.__class_getitem__ numpy.core.numerictypes.datetime64.__class_getitem__ -numpy.core.numerictypes.generic.diagonal -numpy.core.numerictypes.generic.fill -numpy.core.numerictypes.generic.max -numpy.core.numerictypes.generic.mean -numpy.core.numerictypes.generic.min -numpy.core.numerictypes.generic.prod -numpy.core.numerictypes.generic.put -numpy.core.numerictypes.generic.repeat -numpy.core.numerictypes.generic.resize -numpy.core.numerictypes.generic.searchsorted -numpy.core.numerictypes.generic.setfield -numpy.core.numerictypes.generic.setflags -numpy.core.numerictypes.generic.sort -numpy.core.numerictypes.generic.std -numpy.core.numerictypes.generic.sum -numpy.core.numerictypes.generic.swapaxes -numpy.core.numerictypes.generic.take -numpy.core.numerictypes.generic.tofile -numpy.core.numerictypes.generic.trace -numpy.core.numerictypes.generic.var numpy.core.numerictypes.object_.__new__ numpy.core.numerictypes.void.__new__ numpy.core.umath.__all__ @@ -419,26 +224,6 @@ numpy.from_dlpack numpy.frombuffer numpy.fromfile numpy.fromiter -numpy.generic.diagonal -numpy.generic.fill -numpy.generic.max -numpy.generic.mean -numpy.generic.min -numpy.generic.prod -numpy.generic.put -numpy.generic.repeat -numpy.generic.resize -numpy.generic.searchsorted -numpy.generic.setfield -numpy.generic.setflags -numpy.generic.sort -numpy.generic.std -numpy.generic.sum -numpy.generic.swapaxes -numpy.generic.take -numpy.generic.tofile -numpy.generic.trace -numpy.generic.var numpy.in1d numpy.lib._arraysetops_impl.__all__ numpy.lib._arraysetops_impl.in1d @@ -584,48 +369,9 @@ numpy.matlib.from_dlpack numpy.matlib.frombuffer numpy.matlib.fromfile numpy.matlib.fromiter -numpy.matlib.generic.diagonal -numpy.matlib.generic.fill -numpy.matlib.generic.max -numpy.matlib.generic.mean -numpy.matlib.generic.min -numpy.matlib.generic.prod -numpy.matlib.generic.put -numpy.matlib.generic.repeat -numpy.matlib.generic.resize -numpy.matlib.generic.searchsorted -numpy.matlib.generic.setfield -numpy.matlib.generic.setflags -numpy.matlib.generic.sort -numpy.matlib.generic.std -numpy.matlib.generic.sum -numpy.matlib.generic.swapaxes -numpy.matlib.generic.take -numpy.matlib.generic.tofile -numpy.matlib.generic.trace -numpy.matlib.generic.var numpy.matlib.in1d numpy.matlib.may_share_memory numpy.matlib.nanpercentile -numpy.matlib.ndarray.argpartition -numpy.matlib.ndarray.dot -numpy.matlib.ndarray.fill -numpy.matlib.ndarray.max -numpy.matlib.ndarray.mean -numpy.matlib.ndarray.min -numpy.matlib.ndarray.partition -numpy.matlib.ndarray.prod -numpy.matlib.ndarray.put -numpy.matlib.ndarray.repeat -numpy.matlib.ndarray.searchsorted -numpy.matlib.ndarray.setfield -numpy.matlib.ndarray.setflags -numpy.matlib.ndarray.std -numpy.matlib.ndarray.sum -numpy.matlib.ndarray.swapaxes -numpy.matlib.ndarray.take -numpy.matlib.ndarray.tofile -numpy.matlib.ndarray.var numpy.matlib.ndindex.ndincr numpy.matlib.object_.__new__ numpy.matlib.percentile @@ -638,25 +384,6 @@ numpy.matlib.void.__new__ numpy.matlib.where numpy.may_share_memory numpy.nanpercentile -numpy.ndarray.argpartition -numpy.ndarray.dot -numpy.ndarray.fill -numpy.ndarray.max -numpy.ndarray.mean -numpy.ndarray.min -numpy.ndarray.partition -numpy.ndarray.prod -numpy.ndarray.put -numpy.ndarray.repeat -numpy.ndarray.searchsorted -numpy.ndarray.setfield -numpy.ndarray.setflags -numpy.ndarray.std -numpy.ndarray.sum -numpy.ndarray.swapaxes -numpy.ndarray.take -numpy.ndarray.tofile -numpy.ndarray.var numpy.ndindex.ndincr numpy.object_.__new__ numpy.percentile