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
When docstrings that are ignored by the Python interpreter (e.g. in if statements) are reformatted, it causes the
To Reproduce
This very simple program can reproduce the error:
ifTrue:
"""test """
The resulting error is:
error: cannot format file.py: INTERNAL ERROR: Black produced code that is not equivalent to the source. Please report a bug on https://github.com/psf/black/issues.
Describe the bug
When docstrings that are ignored by the Python interpreter (e.g. in
if
statements) are reformatted, it causes theTo Reproduce
This very simple program can reproduce the error:
The resulting error is:
Log file:
Expected behavior
Black ignores the ACL change because docstrings are an exception
The text was updated successfully, but these errors were encountered: