Skip to content

Commit 3fbd2e7

Browse files
authored
Merge pull request numpy#27430 from Azureblade3808/patch-1
TYP: Fix type of ``copy`` argument in ``ndarray.reshape``
2 parents ff1c4e6 + 7ae5155 commit 3fbd2e7

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)