-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Rule B009 cause autofix error #7156
Comments
I guess we need to guard against strings that cannot be tokenized?
|
Is that actually invalid code though? Or is it a bug in the lexer? |
|
Hmm, we need to understand why that character is invalid, because Python does allow some unicode characters in identifiers. Ideally |
I guess the spec is stricter than what we've implemented: https://docs.python.org/3/reference/lexical_analysis.html#identifiers / https://peps.python.org/pep-3131/ |
Tracking in #7169 |
Ruff 0.0.287 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
python_compressed.zip
The text was updated successfully, but these errors were encountered: