A Python library for parsing docstrings in reST, Google, and Numpydoc formats. Current version: 0.17.0, released on July 21, 2025. Maintained with a stable release cadence.
pip install docstring-parserVerified import paths — ran on the pinned version, not inferred.
A quickstart guide demonstrating how to parse a sample docstring using the 'parse' function from docstring_parser.
Update function calls to include the 'style' parameter, e.g., 'parse(docstring, style=DocstringStyle.AUTO)'.
Replace calls to 'parse_from_object' with 'parse' and specify the 'style' parameter.
Always specify the correct 'style' parameter when calling 'parse'.
Install the library using pip: `pip install docstring-parser`
Ensure only one version of `docstring-parser` (and no conflicting forks) is installed and that it's up to date. Uninstall conflicting packages and reinstall `docstring-parser`.
Correct the docstring format to adhere strictly to the expected style, ensuring parameters are defined with a colon, e.g., `param_name: description`.
Either add the missing parameter to the function's signature or remove its documentation from the docstring to match the actual function definition.