---
source: crates/ruff_python_formatter/src/lib.rs
expression: snapshot
input_file: crates/ruff_python_formatter/resources/test/fixtures/black/simple_cases/fmtonoff4.py
---
## Input

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

@test([
    1, 2,
    3, 4,
])
def f(): pass
```

## Black Differences

```diff
--- Black
+++ Ruff
@@ -1,8 +1,12 @@
 # fmt: off
-@test([
-    1, 2,
-    3, 4,
-])
+@test(
+    [
+        1,
+        2,
+        3,
+        4,
+    ]
+)
 # fmt: on
 def f():
     pass
```

## Ruff Output

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


@test(
    [
        1,
        2,
        3,
        4,
    ]
)
def f():
    pass
```

## Black Output

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


@test(
    [
        1,
        2,
        3,
        4,
    ]
)
def f():
    pass
```


