-
-
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
building psf/requests documentation fails with AttributeError: 'LookupDict' object has no attribute '__name__' #8616
Comments
I'm seeing the same building docs with Airflow
Downgrading to 3.3.1 avoids the issue. |
It seems requests' document is using But it is not a class. Is this mark-up intended? I don't know autoclass directive should support non-class items. But it is not intended to make a breaking change. So I'll try to fix it if possible. |
@ConstantinoSchillebeeckx Is your case the same as requests' case? Please check your document. If not, please file another issue to investigate your case in detail. |
… to autoclass Since 3.4.0, AttributeError is raised when non-class object is passed to the autoclass directive. It has built successfully before 3.4.0 release. So this handles the exception on generating "alias" text.
Fix #8616: autodoc: AttributeError when non-class is passed to autoclass
@tk0miya many thanks for the analysis and the fix! That line was not touched in 5 years, so I think that since just worked it was used and never touched again. |
@eriol :-) I recommend you to use |
Describe the bug
Since sphinx 3.4.1 building psf/requests documentation fails with the following:
Attached the full log: sphinx-err-yt45bplo.log
The issue is not reproducible using sphinx 3.3.1.
To Reproduce
In addiction to build requests' documentation I managed to reproduce the issue in the interactive python console using the following:
I'm able to reproduce the issue in a clean virtualenv with only requests and sphinx installed.
Thanks!
The text was updated successfully, but these errors were encountered: