keras-team / keras-autodoc

Documentation autogeneration utilities.
Apache License 2.0
30 stars 22 forks source link

Docstring of super class doesn't show #19

Closed omalleyt12 closed 4 years ago

omalleyt12 commented 4 years ago

@gabrieldemarmiesse

I'm seeing an issue where if a docstring exists in the super class but not in the subclass method then it is not showing up at all

gabrieldemarmiesse commented 4 years ago

This can be fixed using inspect.getdoc instead of __doc__. It's non-trivial because of the docstring parsing being different afterwards, but I'll do it at some point. It's much cleaner anyway.