-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Attributes" in Numpy-style class docstrings are parsed as Parameters #21
Comments
@thekrampus would it be okay with you to separate these completely or do we need to maintain backwards compat here? |
@rr- there's no reason we can't separate them. |
Numpydoc docstrings also have an "Receives" section for values received by generators, as well as an "Other Parameters" section for seldom-used parameters. The parser uses Likewise,
I favor 2. |
I understand 1. and 3. but I don't understand 2. could you please elaborate more? |
I'm talking about using @property
def params(self) -> T.List[DocstringParam]:
return [item for item in self.meta if 'param' in item.args] and so on for attributes, raises, returns, yields, etc I'm not sure what the intended use of |
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:
The text was updated successfully, but these errors were encountered: