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
Black crashes when moving type: ignore comments #3737
Comments
It is great to see this issue being addressed so quickly. Some thoughts I had about this:
|
Thanks for the suggestions, I'd also like to add my two cents on these for consideration:
|
Describe the bug
Black crashes when run on some code that includes a multiline statement with
#type: ignore
comments on multiple lines.To Reproduce
For example, take this code:
And run it with these arguments:
The resulting error is:
Logfile:
Expected behavior
Run without errors, leaving
#type: ignore
comments with the code they are annotating.Environment
Additional context
The
#type: ignore
comments are for mypy.The text was updated successfully, but these errors were encountered: