Black c47255
Playground link
Options
--line-length=88
--safe
Input
x = [
t
for t in y
if t not in {
LongNameOne,
LongNameTwo,
LongNameThree,
}
]
Output
x = [
t
for t in y
if t
not in {
LongNameOne,
LongNameTwo,
LongNameThree,
}
]
Expected
x = [
t
for t in y
if t not in {
LongNameOne,
LongNameTwo,
LongNameThree,
}
]
By moving the not in onto its own line it separates the variable from the expression it's a part of, breaking visual parsing.
Black c47255
Playground link
Options
--line-length=88--safeInput
Output
Expected
By moving the
not inonto its own line it separates the variable from the expression it's a part of, breaking visual parsing.