Black produced different code on the second pass of the formatter #2008
Labels
C: unstable formatting
Formatting changed on the second pass
R: duplicate
This issue or pull request already exists
T: bug
Something isn't working
Describe the bug
While running black, I get the error message
INTERNAL ERROR: Black produced different code on the second pass of the formatter. Please report a bug on https://github.com/psf/black/issues.
To Reproduce
black octoprint_m33fio/__init__.py
(from a checkout of the root of that repository)Expected behavior
I expected it to format the file without error.
Environment (please complete the following information):
Does this bug also happen on master?
yes (via local clone / installation)
Additional context
Apologies for the report that is so far from a minimal repro; I'm attempting to resurrect someone else's abandoned and unusually formatted project, so there's a ton of code that needs formatting. I figured I'd report it anyway, since it said to do so, but if this isn't useful, please just ignore. The "run twice with
--fast
" trick fixes it so this is easy to work around.The text was updated successfully, but these errors were encountered: