Skip to content
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

F-string formatting: Invalid syntax for format-spec with double quotes when targeting pre Python 3.12 #14608

Closed
Tracked by #13371
MichaReiser opened this issue Nov 26, 2024 · 0 comments · Fixed by #14625
Assignees
Labels
bug Something isn't working formatter Related to the formatter preview Related to preview mode features

Comments

@MichaReiser
Copy link
Member

f'{x:a{y=:{z:hy "user"}}} \'\'\''

Gets formatted to

f"{x:a{y=:{z:hy "user"}}} '''"

when preview mode is enabled and targeting a version < Python 3.12

This is related to #14493

@MichaReiser MichaReiser added bug Something isn't working formatter Related to the formatter preview Related to preview mode features labels Nov 26, 2024
@MichaReiser MichaReiser mentioned this issue Nov 26, 2024
29 tasks
@dhruvmanila dhruvmanila self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formatter Related to the formatter preview Related to preview mode features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants