Skip to content

Commit 4093099

Browse files
BvB93Bas van Beek
authored andcommitted
MAINT: Add a few missing parameter types to ndarray.__new__
1 parent 0cf5bc0 commit 4093099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numpy/__init__.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,9 +1694,9 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
16941694
cls: Type[_ArraySelf],
16951695
shape: _ShapeLike,
16961696
dtype: DTypeLike = ...,
1697-
buffer: _SupportsBuffer = ...,
1698-
offset: int = ...,
1699-
strides: _ShapeLike = ...,
1697+
buffer: None | _SupportsBuffer = ...,
1698+
offset: SupportsIndex = ...,
1699+
strides: None | _ShapeLike = ...,
17001700
order: _OrderKACF = ...,
17011701
) -> _ArraySelf: ...
17021702
@overload

0 commit comments

Comments
 (0)