diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-07-22 11:20:45 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-07-22 11:31:31 +0300 |
commit | ec8b7edf536a5fc9c74fc84b1b70a48763fc81e7 (patch) | |
tree | e5f13279a5b619ca5da68cb9d76e421840b3a489 | |
parent | e3461a02ac3617ee50a60601ed277b0cb65459ce (diff) |
Fix: solved issue with "make doc_py"
The error was "ValueError: Function <function normal_at_I0D at 0x7f2aad1feb70>
has keyword-only arguments or annotations, use getfullargspec() API which can
support them", and was first seen in eeeb845d33e81afbc8ed127e6ab4ae7b18472a54
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 32776ef29f3..05ea0d0502d 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -631,7 +631,7 @@ def pyfunc2sphinx(ident, fw, module_name, type_name, identifier, py_func, is_cla if type(py_func) == MethodType: return - arg_str = inspect.formatargspec(*inspect.getargspec(py_func)) + arg_str = inspect.formatargspec(*inspect.getfullargspec(py_func)) if not is_class: func_type = "function" |