-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Avoid duplicate calls to autodoc-process-docstring #4198
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
Conversation
7d3b13a to
7ca2b2c
Compare
|
@shimizukawa could you review this please? |
|
|
||
| documenter.add_content(None) | ||
| doc = list(documenter.process_doc([self.result.data])) | ||
| doc = self.result.data |
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.
I think this fix is correct. Double calling process_doc is caused by leaving a call of process_doc which became unnecessary on #1444.
shimizukawa
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.
LGTM ;)
|
I'm glad we agree! |
Subject: Avoid duplicate calls to autodoc-process-docstring
Feature or Bugfix
Purpose
Autosummary appears to be emitting 'autodoc-process-docstring' on docstrings that have already been processed by 'autodoc-process-docstring'. It does so by calling
Documenter.add_content, which calls itsprocess_doc, and then immediately callingprocess_docon the output. This PR removes the second call.I do not yet have a test, and advice on constructing one is welcome.Relates