List of subclasses in Sphinx using autodoc

Is there an autodoc directive that will list all subclasses of a given class?

If I have the following Python code:

class Base(object): pass class A(Base): pass class B(Base): pass 

Is there a way to generate output like:

 Classes implementing Base: A, B 

Using Sphinx, Autodoc, and Re-Structured text. (For example: show-inheritance: but back). Something like:

 .. autoclass:: Base :THE-COMMAND-I-AM-MISSING: 
+7
restructuredtext python-sphinx autodoc
source share

No one has answered this question yet.

See related questions:

nineteen
Extract reStructuredText from sphinx autodoc?
5
Sort display by classes using sphinx using "autodoc"?
4
autodoc class that extends a mocking class
3
Enable module synopsis in docstring for sphinx autodoc
one
How to document a single private attribute using Sphinx Autodoc?
one
Sphinx cannot handle function assignment inside class definition
one
Sphinx autodoc - decorator and ReadTheDocs
one
How intentionally Sphinx build crashes when autodoc fails to import
0
Run code in autodoc docstring
0
Sphinx autodoc TypeError: type object is not iterable

All Articles