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
WARNING: error while formatting arguments for xxx.XXX: 'ForwardRef' object has no attribute '__origin__' on python 3.7 #5291
Comments
Fortunately, we just fixed it by #5280. It will be released as 1.7.7 soon. |
Thank you for quick response. |
oh, sorry. I just reopened. |
Fix #5291: autodoc crashed by ForwardRef types
Fixed by #5303. |
Is this fix in 1.8.0b1 ? I am seeing a similar problem. |
I am also getting a similar warning: Where does it come from? What is the problem about? When and where is it fixed? I don't know for sure but it seems that signatures with |
Most probably the reason is in this sphinx issue: sphinx-doc/sphinx#5291 Warnings that sphinx 1.7.7 gives look like this: WARNING: error while formatting arguments for xxx.xxx.xxx: '_Any' object has no attribute '__origin__'
See sphinx-doc/sphinx#5291 Always use 1.7.6 until `Sphinx` solves the bugs
OMG, #5300 breaks |
Note: I made a issue #5322 for the problem on 1.7.7. |
I fixed this again by #5333. |
Subject: WARNING: error while formatting arguments for xxx.XXX: 'ForwardRef' object has no attribute
'__origin__'
on python 3.7Problem
Procedure to reproduce the problem
Error logs / results
Output:
And type hints are not exist in the output HTML.
Expected results
No warning and type hints in the result.
Reproducible project / your project
Environment info
The text was updated successfully, but these errors were encountered: