Skip to content

Commit cd6c036

Browse files
committed
Fix deprecation message
1 parent c59773b commit cd6c036

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

numpy/_core/fromnumeric.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,9 @@ def reshape(a, /, shape=None, *, newshape=None, order='C', copy=None):
226226
One shape dimension can be -1. In this case, the value is
227227
inferred from the length of the array and remaining dimensions.
228228
newshape : int or tuple of ints
229-
Replaced by ``shape`` argument. Retained for backward
230-
compatibility.
229+
.. deprecated:: 2.1
230+
Replaced by ``shape`` argument. Retained for backward
231+
compatibility.
231232
order : {'C', 'F', 'A'}, optional
232233
Read the elements of ``a`` using this index order, and place the
233234
elements into the reshaped array using this index order. 'C'

0 commit comments

Comments
 (0)