You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ast.unparse can emit invalid syntax for literal braces in format specifiers #162622
using a literal opening brace as the fill character works in the original f string. ast.unparse writes the brace without escaping it, so parsing the generated source raises a syntax error.
Activity
pythongh-162622: link the news entry to the issue
gh-162622: Fix `ast.unparse()` for literal braces in format specifiers (