-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Attribute undocumented error for an inherited attribute #8602
Comments
AFAIK, Sphinx does not emit such a warning. I guess the warning came from 3rd party extensions. |
It seems your conf.py emits the warning. |
Thanks for taking a look and for pointing out that my own code is generating the warning. Obviously I should have identified this myself and included it in the original report. That said, it isn't clear to me yet why this should have changed with v3.4.0. I'm trying to walk through with a debugger to understand this better. There are many other inherited attributes that this does not happen for and while I don't yet know what about it would be significant, https://doc.qt.io/qt-5/qobject.html#static-public-members I'll let you know what I find. |
A bisect points at 3638a9e and the comments at 3638a9e#r45371488 sound applicable to my case. You said the change was not intended but I don't see a link to any other issues being reported or PRs. The symptom (my warning) is still present at f18e988. Do you expect to undo this changed behavior? I understand that other tasks, for Sphinx or just life in general, likely take priority but I want to understand if this is viewed as a bug to be fixed or if I should adapt to the new behavior. |
This deprecates `no_docstring` argument for Documenter.add_content(). After this change, please use Documenter.get_doc() to control (suppress) the content of the python object.
… is emitted to the non-datadescriptors unexpectedly
Finally, I found the reason for this error. And I confirmed #8611 surely fixes it.
|
…atadescriptors Fix #8602: autodoc: The ``autodoc-process-docstring`` event is emitted to the non-datadescriptors unexpectedly
My apologies. I meant to get back to this when you posted the fix and test it out but managed to get myself distracted. Thank you once again for the prompt debugging and resolution. |
Don't mind. Originally, this bug was embedded by me accidentally in the last release. So it's my work :-) |
Describe the bug
Sphinx complains about missing documentation for an attribute of an inherited class (
staticMetaObject
is an attribute ofQObject
,Reenter
inherits fromQObject
). This showed up with Sphinx 3.4.0 and continues with 3.4.1. I thought this might have been the same issue as #8567, but it has not resolved.https://github.com/altendky/qtrio/runs/1613081989
https://github.com/altendky/qtrio/blob/bf3bcc41e8d63216153bbc42709550429bcf38ff/qtrio/_core.py#L104-L112
To Reproduce
Steps to reproduce the behavior:
Full session
$ cd qtrio
$ source venv/bin/activate
(venv) $ cd docs
Expected behavior
I expected no warnings/errors since the attribute is only inherited.
Your project
https://github.com/altendky/qtrio/tree/bf3bcc41e8d63216153bbc42709550429bcf38ff
Screenshots
n/a
Environment info
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.coverage",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx_autodoc_typehints",
"sphinx_qt_documentation",
"sphinxcontrib_trio",
Additional context
n/a
The text was updated successfully, but these errors were encountered: