---
source: crates/ruff_python_formatter/tests/fixtures.rs
input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/decorators.py
snapshot_kind: text
---
## Input
```python
def  test():

    print("before" )

    @<RANGE_START> decorator( aa)

    <RANGE_END>def  func ():
        print("Do not format this" )


<RANGE_START>@ decorator(  a)
def  test(   a):<RANGE_END>
    print(  "body")

print("after" )


<RANGE_START>@ decorator(  a)<RANGE_END>
def  test(   a):
    print(  "body")

print("after" )

```

## Output
```python
def  test():

    print("before" )

    @decorator(aa)
    def func():
        print("Do not format this" )


@decorator(a)
def test(a):
    print(  "body")

print("after" )


@decorator(a)
def  test(   a):
    print(  "body")

print("after" )

```
