You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With current latest black, 23.3.0 (compiled: yes):
importblackcode="""if True: # fmt: off pass # fmt: on pass"""black.format_str(code, mode=black.FileMode())
Traceback (most recent call last):
File "repro.py", line 10, in <module>
black.format_str(code, mode=black.FileMode())
File "src/black/__init__.py", line 1084, in format_str
File "src/black/__init__.py", line 1089, in _format_str_once
File "src/black/parsing.py", line 127, in lib2to3_parseblack.parsing.InvalidInput: Cannot parse: 5:0: pass
This passes if you use four-space indentation. Possibly related to #3458?
The text was updated successfully, but these errors were encountered:
With current latest
black, 23.3.0 (compiled: yes)
:This passes if you use four-space indentation. Possibly related to #3458?
The text was updated successfully, but these errors were encountered: