summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormelissawm <melissawm.github@gmail.com>2022-02-08 14:02:47 -0300
committermelissawm <melissawm.github@gmail.com>2022-02-08 16:29:49 -0300
commit3f18d8fab26fb473e495f2e82600ce170d1c577c (patch)
treeb5719856063e8ef069df78f8044d2a3cb2f7d480
parent37e08f1c79516f449150a7f526894868c96b38cb (diff)
downloadnumpy-3f18d8fab26fb473e495f2e82600ce170d1c577c.tar.gz
DOC: add note about array_like being optional
-rw-r--r--numpy/core/_add_newdocs.py2
-rw-r--r--numpy/core/overrides.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py
index e5262b643..6ac9951fb 100644
--- a/numpy/core/_add_newdocs.py
+++ b/numpy/core/_add_newdocs.py
@@ -1635,7 +1635,7 @@ add_newdoc('numpy.core.multiarray', 'arange',
dtype : dtype, optional
The type of the output array. If `dtype` is not given, infer the data
type from the other input arguments.
- ${ARRAY_FUNCTION_LIKE} This is an optional argument.
+ ${ARRAY_FUNCTION_LIKE}
.. versionadded:: 1.20.0
diff --git a/numpy/core/overrides.py b/numpy/core/overrides.py
index 840cf38c9..cb550152e 100644
--- a/numpy/core/overrides.py
+++ b/numpy/core/overrides.py
@@ -12,7 +12,7 @@ ARRAY_FUNCTION_ENABLED = bool(
int(os.environ.get('NUMPY_EXPERIMENTAL_ARRAY_FUNCTION', 1)))
array_function_like_doc = (
- """like : array_like
+ """like : array_like, optional
Reference object to allow the creation of arrays which are not
NumPy arrays. If an array-like passed in as ``like`` supports
the ``__array_function__`` protocol, the result will be defined