Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Commit 443b301

Browse files
author
Bas van Beek
committed
_ArrayLikeNested is redundant in its curent implementation; remove it
1 parent 062947b commit 443b301

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

numpy-stubs/__init__.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ _DtypeLike = Union[
9393
_NdArraySubClass = TypeVar("_NdArraySubClass", bound=ndarray)
9494

9595
_ArrayLike = TypeVar("_ArrayLike")
96-
_ArrayLikeNested = Any # TODO: wait for support for recursive types
9796

9897
class dtype:
9998
names: Optional[Tuple[str, ...]]
@@ -901,7 +900,7 @@ def repeat(
901900
) -> ndarray: ...
902901
def put(a: ndarray, ind: _ArrayLikeInt, v: _ArrayLike, mode: _Mode = ...) -> None: ...
903902
def swapaxes(
904-
a: Union[Sequence[_ArrayLikeNested], ndarray], axis1: int, axis2: int
903+
a: Union[Sequence[_ArrayLike], ndarray], axis1: int, axis2: int
905904
) -> ndarray: ...
906905
def transpose(
907906
a: _ArrayLike, axes: Union[None, Sequence[int], ndarray] = ...
@@ -938,13 +937,13 @@ def argpartition(
938937
order: Union[None, str, Sequence[str]] = ...,
939938
) -> ndarray: ...
940939
def sort(
941-
a: Union[Sequence[_ArrayLikeNested], ndarray],
940+
a: Union[Sequence[_ArrayLike], ndarray],
942941
axis: Optional[int] = ...,
943942
kind: Optional[_SortKind] = ...,
944943
order: Union[None, str, Sequence[str]] = ...,
945944
) -> ndarray: ...
946945
def argsort(
947-
a: Union[Sequence[_ArrayLikeNested], ndarray],
946+
a: Union[Sequence[_ArrayLike], ndarray],
948947
axis: Optional[int] = ...,
949948
kind: Optional[_SortKind] = ...,
950949
order: Union[None, str, Sequence[str]] = ...,

0 commit comments

Comments
 (0)