Defines a docutils directive for inserting inheritance diagrams. Provide the directive with one or more classes or modules (separated by whitespace). For modules, all of the classes in that module will be used. Example:: Given the following classes: class A: pass class B(A): pass class C(A): pass class D(B, C): pass class E(B): pass .. inheritance-diagram: D E Produces a graph like the following: A / \ B C / \ / E D The graph is inserted as a PNG+image map into HTML and a PDF in LaTeX.
Class | inheritance |
A docutils node to use as a placeholder for the inheritance diagram. |
Class |
|
Run when the inheritance_diagram directive is first encountered. |
Class |
|
Given a list of classes, determines the set of classes that they inherit from all the way to the root "object", and then is able to generate a graphviz dot graph from them. |
Exception |
|
Undocumented |
Function | get |
Undocumented |
Function | html |
Output the graph for HTML. This will insert a PNG with clickable image map. |
Function | import |
Import a class using its fully-qualified *name*. |
Function | latex |
Output the graph for LaTeX. This will insert a PDF. |
Function | setup |
Undocumented |
Function | skip |
Undocumented |
Function | texinfo |
Output the graph for Texinfo. This will insert a PNG. |
Function | try |
Import a object or module using *name* and *currentmodule*. *name* should be a relative name from *currentmodule* or a fully-qualified name. |
Variable | module |
Undocumented |
Variable | py |
Undocumented |
Output the graph for HTML. This will insert a PNG with clickable image map.
Parameters | |
self:HTML5Translator | Undocumented |
node:inheritance_diagram | Undocumented |
Output the graph for LaTeX. This will insert a PDF.
Parameters | |
self:LaTeXTranslator | Undocumented |
node:inheritance_diagram | Undocumented |
Output the graph for Texinfo. This will insert a PNG.
Parameters | |
self:TexinfoTranslator | Undocumented |
node:inheritance_diagram | Undocumented |