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

Literals containing \N escapes #975

Closed
inikolaev opened this issue Oct 16, 2024 · 2 comments · Fixed by #980
Closed

Literals containing \N escapes #975

inikolaev opened this issue Oct 16, 2024 · 2 comments · Fixed by #980

Comments

@inikolaev
Copy link

After upgrading project to Python 3.12 pyupgrade started to break:

s = f"\N{EN DASH}"

is being changed into

s = f"\N{{EN DASH}}"

which is invalid.

I tested revering back to 3.11 and rerunning pyupgrade and everything looks good.

@asottile
Copy link
Owner

what version are you using?

@inikolaev
Copy link
Author

Sorry, haven't noticed your comment earlier.
I was using 3.18.0, I'll try the fix you've just released, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants