class documentation

class PythonCodeDirective(Directive):

View In Hierarchy

A custom restructuredtext directive which can be used to display syntax-highlighted Python code blocks. This directive takes no arguments, and the body should contain only Python code. This directive can be used instead of doctest blocks when it is inconvenient to list prompts on each line, or when you would prefer that the output not contain prompts (e.g., to make copy/paste easier).
Method run Undocumented
Class Variable has​_content Undocumented
def run(self):

Undocumented

Returns
List[nodes.Node]Undocumented
has_content: bool =

Undocumented