parsers ¤
This module imports all the defined parsers.
Classes:
-
Parser
–Enumeration of the different docstring parsers.
Functions:
-
parse
–Parse the docstring.
Parser ¤
flowchart TD
griffe.docstrings.parsers.Parser[Parser]
click griffe.docstrings.parsers.Parser href "" "griffe.docstrings.parsers.Parser"
Enumeration of the different docstring parsers.
Attributes:
parse ¤
parse(
docstring: Docstring,
parser: (
Literal["google", "numpy", "sphinx"] | Parser | None
),
**options: Any
) -> list[DocstringSection]
Parse the docstring.
Parameters:
-
docstring
(Docstring
) –The docstring to parse.
-
parser
(Literal['google', 'numpy', 'sphinx'] | Parser | None
) –The docstring parser to use. If None, return a single text section.
-
**options
(Any
, default:{}
) –The options accepted by the parser.
Returns:
-
list[DocstringSection]
–A list of docstring sections.