From f6f1e1de5f012a76585f74d2407fa14476b4abd1 Mon Sep 17 00:00:00 2001 From: Karl Otness Date: Tue, 19 Apr 2022 17:28:20 -0400 Subject: DOC: mention that np.require takes a sequence of requirements Document that other Python sequences are acceptable as arguments, not just lists. --- numpy/core/_asarray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/_asarray.py') 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 -- cgit v1.2.1