Internal Error when formatting bracketed return annotations #2381
Labels
C: crash
Black is crashing
C: invalid code
Black destroyed a valid Python file
T: bug
Something isn't working
Describe the bug
When formatting a
*.py
file with bracketed returns annotations the error below is returned:To Reproduce
For example:
test.py
run
black -l 79
on the above fileExpected behavior
The file is formatted and the bracketed form is maintained.
Environment (please complete the following information):
Does this bug also happen on main?
The text was updated successfully, but these errors were encountered: