- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Strange warning #5146
Comments
I found the error. Some of the method docstrings had a first line that ended with I am closing this but I think that the warning message could be improved. |
Good point. I confirmed with following snippet:
I agreed with the error message is not human readable. It should be improved. |
Finally, I found where the warning comes from. autosummary module generates summary table for methods and classes from their docstrings. At that time, autosummary only picks up the first line of docstring. For example, this is docstring of
I have to say this is not invalid docstring. But autosummary causes a warning for this... |
…ine of docstring ends with literal notation
…tation Fix #5146: autosummary: warning is emitted when the first line of docstring ends with literal notation
Fixed by #5152 . |
…mary_warning Fix autosummary: warnings of autosummary indicates wrong location (refs: #5146)
I am working with the matplotlib documentation and wrote a template that generate for example the following file,
_as_gen/matplotlib.transforms.Affine2D.rst
.The template and rendered html pages seems to work as expected but I get the following warning
The overview pages should be equal except for the names but it seems that I only get the warning for some of them. I have tried many different versions with small changes in the template but nothing seems to work without the warning.
Some mistake that I cant see or some kind of bug?
Environment info
The text was updated successfully, but these errors were encountered: