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 eeeb845d33
This commit is contained in:
@@ -631,7 +631,7 @@ def pyfunc2sphinx(ident, fw, module_name, type_name, identifier, py_func, is_cla
|
|||||||
if type(py_func) == MethodType:
|
if type(py_func) == MethodType:
|
||||||
return
|
return
|
||||||
|
|
||||||
arg_str = inspect.formatargspec(*inspect.getargspec(py_func))
|
arg_str = inspect.formatargspec(*inspect.getfullargspec(py_func))
|
||||||
|
|
||||||
if not is_class:
|
if not is_class:
|
||||||
func_type = "function"
|
func_type = "function"
|
||||||
|
Reference in New Issue
Block a user