Skip to content

Commit a643830

Browse files
committed
šŸ› fix syntax error on python 3.10
1 parent 8f6460a commit a643830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ā€Žsrc/numpy-stubs/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
21072107
@overload # == 1-d
21082108
def __iter__(self: ndarray[tuple[int], dtype[_ScalarT]], /) -> Iterator[_ScalarT]: ...
21092109
@overload # >= 2-d
2110-
def __iter__(self: ndarray[tuple[int, int, *tuple[int, ...]], dtype[_ScalarT]], /) -> Iterator[NDArray[_ScalarT]]: ...
2110+
def __iter__(self: ndarray[tuple[int, int, Unpack[tuple[int, ...]]], dtype[_ScalarT]], /) -> Iterator[NDArray[_ScalarT]]: ...
21112111
@overload # ?-d
21122112
def __iter__(self, /) -> Iterator[Any]: ...
21132113

@@ -4083,7 +4083,7 @@ class generic(_ArrayOrScalarCommon, Generic[_ItemT_co]):
40834083
*sizes6_: CanIndex,
40844084
order: _OrderACF = "C",
40854085
copy: py_bool | None = None,
4086-
) -> ndarray[tuple[L[1], L[1], L[1], L[1], L[1], *tuple[L[1], ...]], dtype[Self]]: ...
4086+
) -> ndarray[tuple[L[1], L[1], L[1], L[1], L[1], Unpack[tuple[L[1], ...]]], dtype[Self]]: ...
40874087

40884088
#
40894089
@overload

0 commit comments

Comments
Ā (0)