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
(venv38) jreese@garbodor ~/scratch » black --diff --safe black-repro-tabs.py
error: cannot format black-repro-tabs.py: INTERNAL ERROR: Black produced code that is not equivalent to the source. Please report a bug on https://github.com/psf/black/issues. This diff might be helpful: /var/folders/_b/6gpzshq548d4d_4bk1m5sq280000gn/T/blk_epxedyba.log
Oh no! 💥 💔 💥
1 file would fail to reformat.
This seems different to #1601 which was reported on 19.10b0 and from the discussion was specific to tabs at the end of a line.
I view that issue as for all "Black produced code that is not equivalent to the source" errors due to tabs in docstrings being replaced since the responsible commit (a4c11a7) and possible fix for all these cases is the same. Also the original bug with tabs at the end still exists as of version 20.08b1.
To Reproduce
black-repro-tabs.py
:Expected behavior
Should be formatted using consistent tab characters (or replaced with spaces? 🤷) on both passes.
Environment (please complete the following information):
Does this bug also happen on master?**
Yes.
Additional context
@thatch says
git bisect
points to a4c11a7 where docstring formatting was introduced.The text was updated successfully, but these errors were encountered: