-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 ANN201 cause panic #11731
Comments
@dhruvmanila any chance that's related to our parser changes? |
Let me check |
I'm unable to reproduce this on the latest Edit: Nevermind, it's already in the PR description. |
Ok, I can reproduce it, it's related to the BOM character. |
dhruvmanila
added a commit
that referenced
this issue
Jun 4, 2024
## Summary This PR fixes a bug where the lexer didn't consider the BOM into the start offset. fixes: #11731 ## Test Plan Add multiple test cases which involves BOM character in the source for the lexer and verify the snapshot.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ruff 0.4.7 (latest changes from main branch)
file content:
error
python_compressed.zip
The text was updated successfully, but these errors were encountered: