mkdocstrings / pytkdocs

Load Python objects documentation.
https://mkdocstrings.github.io/pytkdocs
ISC License
50 stars 32 forks source link

Include base classes in output #108

Closed bkoropoff closed 3 years ago

bkoropoff commented 3 years ago

Part of resolving https://github.com/mkdocstrings/mkdocstrings/issues/269

pawamoy commented 3 years ago

I wonder: every class always depend on object right? Will object show up for every class' bases? EDIT: Just tried, no, only for classes that inherit from no other classes :+1:

bkoropoff commented 3 years ago

__bases__ includes only direct base classes, so only object will only show up for classes that inherit directly from it with no intermediaries

bkoropoff commented 3 years ago

I pushed a fix for a type check failure. There's also one in docs/macros.py that seems to pre-existing.

pawamoy commented 3 years ago

Yes, perfect, thanks, leave the one in the docs, I'll take care of it.

bkoropoff commented 3 years ago

Is this ready to merge @pawamoy ?

pawamoy commented 3 years ago

Thanks again @bkoropoff!