class documentation
class NapoelonDocstringParser: (source)
Parse google-style or numpy-style docstrings.
First wrap the pydoctor.napoleon
converter classes, then call pydoctor.epydoc.markup.restructuredtext.parse_docstring
with the converted reStructuredText docstring.
If the Documentable
instance is an Attribute
, the docstring will be parsed differently.
Method | __init__ |
No summary |
Method | parse |
Parse the given docstring, which is formatted as Google style docstring. Return a ParsedDocstring representation of its contents. |
Method | parse |
Parse the given docstring, which is formatted as NumPy style docstring. Return a ParsedDocstring representation of its contents. |
Instance Variable | obj |
Undocumented |
Static Method | _parse |
Helper method to parse GoogleDocstring or NumpyDocstring objects. |
Method | _parse |
Undocumented |
Parse the given docstring, which is formatted as Google style docstring. Return a ParsedDocstring
representation of its contents.
Parameters | |
docstring:str | The docstring to parse |
errors:List[ | A list where any errors generated during parsing will be stored. |
processtypes:bool | Undocumented |
Returns | |
ParsedDocstring | Undocumented |
Parse the given docstring, which is formatted as NumPy style docstring. Return a ParsedDocstring
representation of its contents.
Parameters | |
docstring:str | The docstring to parse |
errors:List[ | A list where any errors generated during parsing will be stored. |
processtypes:bool | processtypes is always ``True`` for google and numpy docstrings. |
Returns | |
ParsedDocstring | Undocumented |
Helper method to parse GoogleDocstring
or NumpyDocstring
objects.
Parameters | |
docstringGoogleDocstring | Undocumented |
errors:List[ | Undocumented |
Returns | |
ParsedDocstring | Undocumented |
Undocumented
Parameters | |
docstring:str | Undocumented |
errors:List[ | Undocumented |
docstringType[ | Undocumented |
Returns | |
ParsedDocstring | Undocumented |