summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuki <drsuaimqjgar@gmail.com>2023-03-23 11:21:57 +0000
committeryuki <drsuaimqjgar@gmail.com>2023-03-23 11:21:57 +0000
commit469b748e49334f33d8ba638b298b90478ff52639 (patch)
tree5013bee8a5ddf252d8b6c19d8a50c91272e2c633
parent3ede0d999ea55c07adad0097cef330a61e02a88c (diff)
downloadnumpy-469b748e49334f33d8ba638b298b90478ff52639.tar.gz
DOC: Remove descriptions in method declarations
-rw-r--r--numpy/core/_add_newdocs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py
index f2a2216c3..bd7c4f519 100644
--- a/numpy/core/_add_newdocs.py
+++ b/numpy/core/_add_newdocs.py
@@ -2935,7 +2935,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('T',
add_newdoc('numpy.core.multiarray', 'ndarray', ('__array__',
- """ a.__array__([dtype], /) -> reference if type unchanged, copy otherwise.
+ """ a.__array__([dtype], /)
Returns either a new reference to self if dtype is not given or a new array
of provided data type if dtype is different from the current dtype of the
@@ -3008,7 +3008,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('__class_getitem__',
add_newdoc('numpy.core.multiarray', 'ndarray', ('__deepcopy__',
- """a.__deepcopy__(memo, /) -> Deep copy of array.
+ """a.__deepcopy__(memo, /)
Used if :func:`copy.deepcopy` is called on an array.