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

[Fix error] UP025, UP032, W605 #8967

Closed
AlexBlandin opened this issue Dec 2, 2023 · 2 comments · Fixed by #8971
Closed

[Fix error] UP025, UP032, W605 #8967

AlexBlandin opened this issue Dec 2, 2023 · 2 comments · Fixed by #8971
Assignees
Labels
bug Something isn't working

Comments

@AlexBlandin
Copy link

AlexBlandin commented Dec 2, 2023

Using ruff check --select UP025,UP032,W605 --fix --isolated pokedex/doc/tabledoc.py on a local copy of the https://github.com/veekun/pokedex repo reports Ruff introducing a syntax error. So, this seems to be an issue with Unicode literals in f-strings?

@charliermarsh charliermarsh added the bug Something isn't working label Dec 2, 2023
@charliermarsh
Copy link
Member

Thanks!

@charliermarsh
Copy link
Member

Minimum snippet: u'foo\ bar'

@charliermarsh charliermarsh self-assigned this Dec 2, 2023
charliermarsh added a commit that referenced this issue Dec 2, 2023
## Summary

If a string has a Unicode prefix, we can't add the `r` prefix on top of
that -- we need to remove and replace it. (The Unicode prefix is
redundant anyway in Python 3.)

Closes #8967.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants