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

Incorrect f-string parsing #5044

Closed
hauntsaninja opened this issue Jun 13, 2023 · 1 comment
Closed

Incorrect f-string parsing #5044

hauntsaninja opened this issue Jun 13, 2023 · 1 comment

Comments

@hauntsaninja
Copy link
Contributor

hauntsaninja commented Jun 13, 2023

Not the best string ever, but ruff doesn't handle it like Python

λ cat test.py
print(f"$N_{{img}}\in\{{0,1,2\}}$")
λ python test.py
$N_{img}\in\{0,1,2\}$
λ ruff check test.py --select F401
error: Failed to parse test.py:1:25: f-string: unterminated string
@charliermarsh
Copy link
Member

Nice, thanks -- re-opening on the parser as RustPython/Parser#88.

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2023
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

No branches or pull requests

2 participants