diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-07-19 14:36:35 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 14:36:35 -0600 |
commit | 4bd449439ccce1be0bc43abed15423b46dbdcacb (patch) | |
tree | 51a4880cfc088738d44335b18f18c42fa2e2b2f2 /numpy/core | |
parent | 45cfd110471ae9272da387bf8fc616c66cfcb703 (diff) | |
parent | a8699e28d348dfeea54f319cca29aff6ff26b0ef (diff) | |
download | numpy-4bd449439ccce1be0bc43abed15423b46dbdcacb.tar.gz |
Merge pull request #19444 from BvB93/shape_base
ENH: Add annotations for `np.lib.shape_base`
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/_add_newdocs.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index a29e2e8a8..41e4e4d08 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -1585,7 +1585,7 @@ add_newdoc('numpy.core.multiarray', 'arange', For integer arguments the function is equivalent to the Python built-in `range` function, but returns an ndarray rather than a list. - When using a non-integer step, such as 0.1, it is often better to use + When using a non-integer step, such as 0.1, it is often better to use `numpy.linspace`. See the warnings section below for more information. Parameters @@ -2771,13 +2771,17 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('__array__', add_newdoc('numpy.core.multiarray', 'ndarray', ('__array_prepare__', - """a.__array_prepare__(obj) -> Object of same type as ndarray object obj. + """a.__array_prepare__(array[, context], /) + + Returns a view of `array` with the same type as self. """)) add_newdoc('numpy.core.multiarray', 'ndarray', ('__array_wrap__', - """a.__array_wrap__(obj) -> Object of same type as ndarray object a. + """a.__array_wrap__(array[, context], /) + + Returns a view of `array` with the same type as self. """)) |