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
sphinx.pycode.ast.unparse does not understand operator precedence #7498
Comments
Please mind we also need to support |
Indeed, the idea would be to add parentheses only where needed, like |
Although note that |
It seems |
Copying the entirety of |
Reasonable. But we should notice about license issue to copy it. |
Fixed by #8265 now. |
As an example:
Easiest way to fix this will be to copy some of the approach from the python 3.9
ast.unparse
, which needs #7497 in order to keep track of the current precedence level.The text was updated successfully, but these errors were encountered: