summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-01-10 14:49:11 -0700
committerGitHub <noreply@github.com>2022-01-10 14:49:11 -0700
commit18aa14c0aa699506bea357f46a18cbdfabc3d951 (patch)
treee29cb45803a12289f72e30efd7cab0ae411e3a57
parentc7f67f5f0aa0c0be61859fc084eb2af48585b638 (diff)
parentfd4cdf5dfb0f337ba44051dc5e60a89ddb8c6d5c (diff)
downloadnumpy-18aa14c0aa699506bea357f46a18cbdfabc3d951.tar.gz
Merge pull request #20773 from DimitriPapadopoulos/generate_umath_docstrings
BUG: method without self argument should be static
-rw-r--r--numpy/core/code_generators/generate_umath.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/code_generators/generate_umath.py b/numpy/core/code_generators/generate_umath.py
index 874a51d47..1844ab96a 100644
--- a/numpy/core/code_generators/generate_umath.py
+++ b/numpy/core/code_generators/generate_umath.py
@@ -14,6 +14,7 @@ MinusInfinity = 'PyFloat_FromDouble(-NPY_INFINITY)'
ReorderableNone = "(Py_INCREF(Py_None), Py_None)"
class docstrings:
+ @staticmethod
def get(place):
"""
Returns the C #definition name of docstring according