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
Problems with doc comments using Generic class and extending it #8190
Comments
I passed
Surely, additional blank line is needed just after the field list. I guess this field list is generated by sphinx_autodoc_typehints extension. Actually, no warnings are shown when I disabled it. I think this is not a bug of Sphinx itself. |
Thanks for your answer!! I'll open an issue on |
After read
So, that line isn't generated by sphinx_autodoc_typehints. |
We can verify if the last line contains something before inserting a new one! |
autodoc expects the extensions to return docstring ends with a blank line (silently). But I noticed it can be adjusted from our side. And I think no silent rule is needed for this case. Okay, I'll fix this on next release. |
…without_ending_blankline Fix #8190: autodoc: parse error for docstring w/o ending blank lines
Describe the bug
This is a very specific bug (I think), when we have a
Generic
class with doc comment for an attribute and I extend it. If the child class has the__init__
method (using typed parameters) and I try to reassign the attribute fromGeneric
class I got the following error:To Reproduce
Steps to reproduce the behavior:
Code example:
If you try to modify something in the script maybe the error will not appear, it's a very specific corner case!
Expected behavior
The warning should not appear!
Your project
returns
Environment info
related issue dry-python/returns#568
The text was updated successfully, but these errors were encountered: