We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Astor wraps expressions into parenthesis, also when this is completely redundant:
code = '''print(f"{var + 1:.2f}")''' import ast tree = ast.parse(code) import astor recovered = astor.to_source(tree) print('original: ',code) print('astor: ',recovered)
output:
original: print(f"{var + 1:.2f}") astor: print(f'{(var + 1):.2f}')
Python: 3.6.8 astor: 0.8.0
The text was updated successfully, but these errors were encountered:
Just saw, preparing patch (sorry for delay).
Sorry, something went wrong.
set precedence on f-string expressions, resolves berkerpeksag#153
f320d61
set precedence on f-string expressions, resolves #153
7638d93
cda6724
Successfully merging a pull request may close this issue.
Astor wraps expressions into parenthesis, also when this is completely redundant:
output:
Python: 3.6.8
astor: 0.8.0
The text was updated successfully, but these errors were encountered: