Parses documentation in the NumpyDoc format. See https://numpydoc.readthedocs.io/en/latest/format.html for more information.
This class is not thread-safe. Each thread should create its own instance.
Source code in
__cached_function_node: Optional[astroid.FunctionDef] = None
__cached_numpydoc_string: Optional[NumpyDocString] = None
Returns the NumpyDocString for the given function node. It is only recomputed when the function node differs from the previous one that was passed to this function. This avoids reparsing the docstring for the function itself and all of its parameters.
On Lars's system this caused a significant performance improvement: Previously, 8.382s were spent inside the function get_parameter_documentation when parsing sklearn. Afterwards, it was only 2.113s.