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
$ black bad_input.py
error: cannot format bad_input.py: INTERNAL ERROR: Black produced invalid code: expected an indented block (<unknown>, line 8). Please report a bug on https://github.com/ambv/black/issues. This invalid output might be helpful: /var/folders/y0/clprvktj3b5__hkvm2p4m_yr0000gn/T/blk_8rbcsejt.log
All done! 💥 💔 💥
1 file failed to reformat.
Describe the bug Under certain circumstances, annotating a method with
# yapf: disable
among other inputs causes black to produce invalid code.To Reproduce Steps to reproduce the behavior:
Minimal reproducing input:
Here's the associated logfile: blk_8rbcsejt.log
Expected behavior The file is reformatted while preserving code structure.
Environment (please complete the following information):
master
and19.3b0
Does this bug also happen on master? Yes. I tested the sample file with https://black.now.sh/?version=master.
The text was updated successfully, but these errors were encountered: