class documentation

class ParsedRstDocstring(ParsedDocstring):

Known subclasses: pydoctor.epydoc.markup._pyval_repr.ColorizedPyvalRepr

View In Hierarchy

An encoded version of a ReStructuredText docstring. The contents of the docstring are encoded in the _document instance variable.
Method __init__ Undocumented
Method __repr__ Undocumented
Method to​_node Translate this docstring to a docutils.nodes.document.
Property has​_body Does this docstring have a non-empty body?
Instance Variable ​_document A ReStructuredText document, encoding the docstring.

Inherited from ParsedDocstring:

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 ​_stan Undocumented
def __init__(self, document, fields):

Undocumented

Parameters
document:nodes.documentUndocumented
fields:Sequence[Field]Undocumented
def __repr__(self):

Undocumented

Returns
strUndocumented
def to_node(self):
Translate this docstring to a docutils.nodes.document.
Returns
nodes.documentThe docstring presented as a docutils.nodes.document.
@property
has_body: bool =

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.

_document =
A ReStructuredText document, encoding the docstring.