black/tests/data/fmtonoff4.py

32 lines
240 B
Python

# fmt: off
@test([
1, 2,
3, 4,
])
# fmt: on
def f(): pass
@test([
1, 2,
3, 4,
])
def f(): pass
# output
# fmt: off
@test([
1, 2,
3, 4,
])
# fmt: on
def f():
pass
@test(
[1, 2, 3, 4,]
)
def f():
pass