black
internal error on line-broken ==
#4220
Labels
C: crash
Black is crashing
F: comments
The syntactic kind. Not in the language grammar, always on our minds. Best bugs.
T: bug
Something isn't working
Describe the bug
black
crashes when encountering atype: ignore
comment on a line-broken==
, where the==
is on the first line.To Reproduce
For example, take this code:
And run it with these arguments:
The resulting error is:
And the diff:
Note: if you move the
==
to the second line:then no problem.
Environment
$ python3 --version Python 3.11.7 $ uname -v Darwin Kernel Version 22.6.0: Sun Dec 17 22:13:25 PST 2023; root:xnu-8796.141.3.703.2~2/RELEASE_ARM64_T6020
The text was updated successfully, but these errors were encountered: