Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork169
Move "Attributes" and "Methods" below "Parameters"#571
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@lucascolley can you look to see if there is some test that could be added or modified that would have caught this? |
this test numpydoc/numpydoc/tests/test_docscrape.py Line 1258 in54dbc89
|
I openedgh-572 in case we need higher-level discussion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
FWIW I'm in favor of the change - class attributes and methods are typically key pieces of API, so ensuring that they render near the top of the docstring instead of being buried under the other sections seems like an improvement.
could someone approve CI please? :) |
Done! |
apologies for the iteration, I was being lazy and not running the tests - they all pass locally for me now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Seems like everyone is in favor so in it goes, thanks@lucascolley !
7716617
intonumpy:mainUh oh!
There was an error while loading.Please reload this page.
thanks all! |
The numpydoc 1.8.0 release re-ordered some sections [1] in generateddocs, which caused our missing reference extension to no longer ignoresome entries since they are at different lines.Fixesmatplotlib#28715[1]numpy/numpydoc#571
Uh oh!
There was an error while loading.Please reload this page.
Reorder the sections in
docscrape
to match the style guide. As perhttps://numpydoc.readthedocs.io/en/latest/format.html#class-docstring, the Attributes section should be "located below the Parameters section", which I am interpreting as directly below. It seems wrong for Attributes to be below Notes, References and Examples.x-refscipy/scipy#21099