diff options
author | Karl Otness <karl@karlotness.com> | 2022-04-19 17:28:20 -0400 |
---|---|---|
committer | Karl Otness <karl@karlotness.com> | 2022-06-19 16:57:51 -0400 |
commit | f6f1e1de5f012a76585f74d2407fa14476b4abd1 (patch) | |
tree | 62fdea0c00b5d54a474e8ffdb78964883341166c /numpy/core/_asarray.py | |
parent | 2b00ad293159c0e1b52bacd11bfef01f0ea0b5b1 (diff) | |
download | numpy-f6f1e1de5f012a76585f74d2407fa14476b4abd1.tar.gz |
DOC: mention that np.require takes a sequence of requirements
Document that other Python sequences are acceptable as arguments, not
just lists.
Diffstat (limited to 'numpy/core/_asarray.py')
-rw-r--r-- | numpy/core/_asarray.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/_asarray.py b/numpy/core/_asarray.py index 89d422e99..fb41aa006 100644 --- a/numpy/core/_asarray.py +++ b/numpy/core/_asarray.py @@ -36,7 +36,7 @@ def require(a, dtype=None, requirements=None, *, like=None): The required data-type. If None preserve the current dtype. If your application requires the data to be in native byteorder, include a byteorder specification as a part of the dtype specification. - requirements : str or list of str + requirements : str or sequence of str The requirements list can be any of the following * 'F_CONTIGUOUS' ('F') - ensure a Fortran-contiguous array |