-
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
Valid python files, that fails to parse in ruff #7632
Comments
The following files contains f-string errors which will be fixed by #7376. I've verified that those files are parsed without any errors on that branch:
Other files contains identifier starting with unicode character which we're unable to identify which then produces a syntax error. |
Looks that #7376 introduced regression, and now some valid python files shows errors:
|
CC: @dhruvmanila |
@dhruvmanila - We should probably try to fix these regressions before the next release. I can also help out if needed. |
- f"', '.join({ckt.name for ckt in self._ckts_with_errors})"
+ f"', '.join({(ckt.name for ckt in self._ckts_with_errors)})" It fails in the same way the below code fails: foo = ckt.name for ckt in self._ckts_with_errors
f'text \\r\n
more text' |
## Summary This PR fixes a bug where if a Windows newline (`\r\n`) character was escaped, then only the `\r` was consumed and not `\n` leading to an unterminated string error. ## Test Plan Add new test cases to check the newline escapes. fixes: #7632
Ruff 0.0.291
Cpython 3.11.4
Tested with
and cpython part
RuffBroken.zip
Example of file
error
The text was updated successfully, but these errors were encountered: