Numpy docstrings for classes have an Attributes section:
https://numpydoc.readthedocs.io/en/latest/format.html#class-docstring
However, if I parse a docstring that adheres to it, the Attributes are listed as Parameters:
from docstring_parser import parse, Style
docstring = """Test class
My test class does nothing
Attributes
----------
data : None
An empty field
"""
parsed_docstring = parse(d, style=Style.numpydoc)
for param in parsed_docstring.params:
print(param.arg_name)
# outputs:
# 'data'
Numpy docstrings for classes have an Attributes section:
https://numpydoc.readthedocs.io/en/latest/format.html#class-docstring
However, if I parse a docstring that adheres to it, the Attributes are listed as Parameters: