##// END OF EJS Templates
Fix small numpydoc bug so docs build out of the box....
Fernando Perez -
Show More
@@ -68,7 +68,8 b' def mangle_docstrings(app, what, name, obj, options, lines,'
68 def mangle_signature(app, what, name, obj, options, sig, retann):
68 def mangle_signature(app, what, name, obj, options, sig, retann):
69 # Do not try to inspect classes that don't define `__init__`
69 # Do not try to inspect classes that don't define `__init__`
70 if (inspect.isclass(obj) and
70 if (inspect.isclass(obj) and
71 'initializes x; see ' in pydoc.getdoc(obj.__init__)):
71 (not hasattr(obj, '__init__') or
72 'initializes x; see ' in pydoc.getdoc(obj.__init__))):
72 return '', ''
73 return '', ''
73
74
74 if not (callable(obj) or hasattr(obj, '__argspec_is_invalid_')): return
75 if not (callable(obj) or hasattr(obj, '__argspec_is_invalid_')): return
General Comments 0
You need to be logged in to leave comments. Login now