Skip to content

Commit 7ae5155

Browse files
Fix type of copy argument in ndarray.reshape
The counterpart of `None` should be `builtins.bool` instead of `bool`(`numpy.bool`).
1 parent e759d24 commit 7ae5155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,14 +2189,14 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
21892189
/,
21902190
*,
21912191
order: _OrderACF = ...,
2192-
copy: None | bool = ...,
2192+
copy: None | builtins.bool = ...,
21932193
) -> ndarray[_Shape, _DType_co]: ...
21942194
@overload
21952195
def reshape(
21962196
self,
21972197
*shape: SupportsIndex,
21982198
order: _OrderACF = ...,
2199-
copy: None | bool = ...,
2199+
copy: None | builtins.bool = ...,
22002200
) -> ndarray[_Shape, _DType_co]: ...
22012201

22022202
@overload

0 commit comments

Comments
 (0)