class documentation
class ParsedTypeDocstring(ParsedDocstring): (source)
Constructor: ParsedTypeDocstring(annotation, warns_on_unknown_tokens, lineno)
Add ParsedDocstring interface on top of TypeDocstring and allow to parse types from nodes.Node objects, providing the --process-types option.
| Method | __init__ |
Undocumented |
| Method | to |
Translate this docstring to a nodes.document. |
| Constant | FIELDS |
Undocumented |
| Instance Variable | warnings |
Undocumented |
| Property | has |
Does this docstring have a non-empty body? |
| Method | _parse |
Convert type to docutils document object. |
| Class Variable | _converters |
Undocumented |
| Instance Variable | _document |
Undocumented |
| Instance Variable | _lineno |
Undocumented |
| Instance Variable | _tokens |
Undocumented |
Inherited from ParsedDocstring:
| Method | get |
Returns the summary of this docstring. |
| Method | get |
The table of contents of the docstring if titles are defined or None. |
| Method | to |
Translate this docstring to a Stan tree. |
| Method | to |
Translate this docstring to a string. The default implementation depends on to_node. |
| 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, annotation:
nodes.document, warns_on_unknown_tokens: bool = False, lineno: int = 0):
(source)
¶
Undocumented
Translate this docstring to a nodes.document.
| Returns | |
nodes.document | The 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) |