class documentation

Undocumented

Method __init__ Undocumented
Method __str__ Undocumented
Method to_node Translate this docstring to a nodes.document.
Constant SYMBOL_TO_CODEPOINT Undocumented
Property has_body Does this docstring have a non-empty body?
Method _slugify Undocumented
Method _to_node Undocumented
Instance Variable _document Undocumented
Instance Variable _section_slugs Undocumented
Instance Variable _stan Undocumented
Instance Variable _tree Undocumented

Inherited from ParsedDocstring:

Method get_summary Returns the summary of this docstring.
Method get_toc The table of contents of the docstring if titles are defined or None.
Method to_stan Translate this docstring to a Stan tree.
Instance Variable fields A list of Fields, each of which encodes a single field. The field's bodies are encoded as ParsedDocstrings.
Instance Variable _summary Undocumented
def __init__(self, body: Element | None, fields: Sequence[Field]): (source)
def __str__(self) -> str: (source)

Undocumented

def to_node(self) -> nodes.document: (source)

Translate this docstring to a nodes.document.

Returns
nodes.documentThe docstring presented as a nodes.document.
Note
Some ParsedDocstring subclasses do not support docutils nodes. This method might raise NotImplementedError in such cases. (i.e. pydoctor.epydoc.markup._types.ParsedTypeDocstring)
SYMBOL_TO_CODEPOINT: dict[str, int] = (source)

Undocumented

Value
{'<-': 8592,
 '->': 8594,
 '^': 8593,
 'v': 8595,
 'alpha': 945,
 'beta': 946,
 'gamma': 947,
...

Does this docstring have a non-empty body?

The body is the part of the docstring that remains after the fields have been split off.

def _slugify(self, text: str) -> str: (source)

Undocumented

def _to_node(self, tree: Element) -> Iterable[nodes.Node]: (source)

Undocumented

Undocumented

_section_slugs: set[str] = (source)

Undocumented

Undocumented