summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/_internal.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py
index 4eebbaea3..3b0c46467 100644
--- a/numpy/core/_internal.py
+++ b/numpy/core/_internal.py
@@ -843,11 +843,13 @@ def _ufunc_doc_signature_formatter(ufunc):
", order='K'"
", dtype=None"
", subok=True"
- "[, signature"
- ", extobj]"
)
+
+ # NOTE: gufuncs may or may not support the `axis` parameter
if ufunc.signature is None:
- kwargs = ", where=True" + kwargs
+ kwargs = f", where=True{kwargs}[, signature, extobj]"
+ else:
+ kwargs += "[, signature, extobj, axes, axis]"
# join all the parts together
return '{name}({in_args}{out_args}, *{kwargs})'.format(