module documentation
Classes for google-style and numpy-style docstring conversion.
Forked from sphinx.ext.napoleon.docstring.
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details.
Class |
|
Represent a field with a name and/or a type and/or a description. Commonly a parameter description. It's also used for Returns section and other sections structured with fields. |
Class |
|
Convert Google style docstrings to reStructuredText. |
Class |
|
Convert NumPy style docstrings to reStructuredText. |
Class |
|
Undocumented |
Class |
|
Convert natural language type strings to reStructuredText. |
Exception |
|
Exception to encapsulate the converted lines when numpy-style fields get treated as free form. |
Function | is |
Is this string a valid type expression and/or google-style field name and type expression in parenthesis? |
Function | is |
Is this string a Python object(s) identifier? |
Function | is |
Is this string a type expression that can be parsed by TypeDocstring without generating any warnings? |
Variable | _bullet |
Undocumented |
Variable | _directive |
Undocumented |
Variable | _enumerated |
Undocumented |
Variable | _google |
Undocumented |
Variable | _google |
Undocumented |
Variable | _numpy |
Undocumented |
Variable | _single |
Undocumented |
Variable | _xref |
Undocumented |
Variable | _xref |
Undocumented |
Is this string a valid type expression and/or google-style field name and type expression in parenthesis?
Valid strings are like:
param (list(str), optional) list(str), optional ValueError
When parse_type=True (default), this multi-word field name and type is even recognized:
multiple words parameter (list(str), optional)
Note | |
Behave exactly like is_type if parse_type=False. |
Is this string a Python object(s) identifier?
An object identifier is a valid type string. But a valid type can be more complex than an object identifier.
Is this string a type expression that can be parsed
by TypeDocstring
without generating any warnings?
See Also | |
TypeDocstring |
Note | |
Some string will be parsed without warnings
even if is_type returns False . |