--line-ranges
dedents a # fmt: off
in the middle of a decorator
#4068
Labels
T: bug
Something isn't working
Describe the bug
Given the following code:
Run black with
Line 8 is
pass
, and the file will be formatted to:Expected behavior
No formatting changes.
Environment
Additional context
I'll take a look at this, I think we need to save additional info when code is converted to
STANDALONE_COMMENT
for# fmt: off/skip
markers before we convert lines outside of--line-ranges=
toSTANDALONE_COMMENT
.The text was updated successfully, but these errors were encountered: