- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Sphinx 4.3 chokes on @lru_cache #9838
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
Comments
Maybe this is a Python issue? Here is an MRE
blows up with
|
Well, I guess this is only an issue with Python 3.7 But we like to use 3.7 to have parallel builds on OSX, since otherwise they take close to ten minutes. |
Indeed, this is a bug of python3.7... |
Is there a way for Sphinx to work around it? |
Create a wrapper of |
Python 3.7 is now security fixes only, unless I am misinterpreting this schedule |
Hmm... Okay, let's fix it on Sphinx side. I'll post the fix for it soon. |
Thank you as always @tk0miya 😄 |
Fix #9838: autodoc: AttributeError is raised for lru_cache
Describe the bug
Updating Sphinx to 4.3 and trying to build the Bokeh docs generate an exception:
Full logs:
It seems as though
autodoc
no longer properly handles functions that are wrapped with@lru_cache
How to Reproduce
NOTE: We are pinning the sphinx version < 4.3 to unstick our broken CI builds. You may need to manually update to sphinx 4.3 manually in the environment before running
make
Expected behavior
Docs successfully build without exception
Your project
https://github.com/bokeh/bokeh/tree/branch-3.0/sphinx
Screenshots
No response
OS
OSX
Python version
3.7
Sphinx version
4.3
Sphinx extensions
Extra tools
No response
Additional context
ref: bokeh/bokeh#11789
The text was updated successfully, but these errors were encountered: