diff options
author | Prithvi MK <32909711+pmk21@users.noreply.github.com> | 2019-05-25 06:57:04 +0530 |
---|---|---|
committer | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2019-05-24 21:27:04 -0400 |
commit | cf704e7f245e89c623bd82cbdba7c2dd07cf5fb4 (patch) | |
tree | dc721470548665789b4a2331720a6cfc907298f3 /numpy/core/_asarray.py | |
parent | 9713e86cc65ebed96464f4d81bb2637857b84f44 (diff) | |
download | numpy-cf704e7f245e89c623bd82cbdba7c2dd07cf5fb4.tar.gz |
DOC: Add missing return value documentation in ndarray.require (#13619)
Diffstat (limited to 'numpy/core/_asarray.py')
-rw-r--r-- | numpy/core/_asarray.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/_asarray.py b/numpy/core/_asarray.py index fbb7ffa9d..0ad4161f4 100644 --- a/numpy/core/_asarray.py +++ b/numpy/core/_asarray.py @@ -246,6 +246,11 @@ def require(a, dtype=None, requirements=None): * 'OWNDATA' ('O') - ensure an array that owns its own data * 'ENSUREARRAY', ('E') - ensure a base array, instead of a subclass + Returns + ------- + out : ndarray + Array with specified requirements and type if given. + See Also -------- asarray : Convert input to an ndarray. |