As an example:
>>> import sphinx.pycode.ast as ast
>>> ast.unparse(ast.parse("(1 + 2) * 3").body[0].value)
'1 + 2 * 3'
>>> ast.unparse(ast.parse("(1, 2) + (3, 4)").body[0].value)
'1, 2 + 3, 4'
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.
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.