-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix: Napoleon NumpyDocstring incorrect section ordering #14188
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
base: master
Are you sure you want to change the base?
Fix: Napoleon NumpyDocstring incorrect section ordering #14188
Conversation
|
The |
8fc1fb2 to
1d2b57d
Compare
|
Fixed the CI / Python 3.12 (Docutils 0.21) failure: it was Git’s working-tree-encoding conversion choking on working-tree-encoding=iso-8859.
|
AA-Turner
left a comment
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.
please revert all unrelated changes
…x-doc#13180) Implements section reordering in NumpyDocstring._parse to ensure 'Attributes' and 'Methods' sections appear after 'Parameters', matching numpydoc standard logic. This is achieved by collecting sections during parsing then reordering them before generating the final parsed lines.
d07e1c8 to
f97e19f
Compare
|
Done, the tests are running again. |
|
Will this be merged then? @AA-Turner |
|
There's been no review yet which is the major blocker to merging. It'd be helpful to reviewers to have tests and a CHANGES entry in this PR, though. A |
Closes #13180. Implements section reordering in
NumpyDocstring._parseto ensure 'Attributes' and 'Methods' appear after 'Parameters', matching numpydoc standard logic.