-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
bug: napoleon: numpydoc: incorrect section ordering for classes #13180
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
Comments
|
thanks for taking a look, I can try to address points (1) and (3) when I find the time.
To quote the Napoleon docs:
My understanding is that Napoleon should format the docstrings as Numpydoc would. Unless it has its own separate style? If so, it would be good to make that clear in the docs. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Hi Lucas (@lucascolley), Happy New Year! I agree that Sphinx should update the style to reflect what is defined by NumPy. This is what Napoleon links to internally, so I think this is the best course of action. Happy to accept a PR, please tag me. A |
thanks @AA-Turner ! I'll try to find time to work on this at some point in the future, but more than happy for somebody else to tackle it before I get round to it! |
Ive tried to work on it but it seems to be a little complex |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
As noted in the release notes for numpydoc 1.8.0, the section ordering was updated in numpy/numpydoc#571 for classes, to move the Attributes and Methods sections directly below the Parameters section.
Using sphinx.ext.napoleon attributes and methods are still generated after the Notes and Examples sections.
How to Reproduce
Environment Information
Sphinx extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: