| 1 |
# flags: --line-ranges=12-12 --line-ranges=21-21 |
| 2 |
# NOTE: If you need to modify this file, pay special attention to the --line-ranges= |
| 3 |
# flag above as it's formatting specifically these lines. |
| 4 |
|
| 5 |
# Regression test for an edge case involving decorators and fmt: off/on. |
| 6 |
class MyClass: |
| 7 |
|
| 8 |
# fmt: off |
| 9 |
@decorator ( ) |
| 10 |
# fmt: on |
| 11 |
def method(): |
| 12 |
print ( "str" ) |
| 13 |
|
| 14 |
@decor( |
| 15 |
a=1, |
| 16 |
# fmt: off |
| 17 |
b=(2, 3), |
| 18 |
# fmt: on |
| 19 |
) |
| 20 |
def func(): |
| 21 |
pass |
| 22 |
|
| 23 |
|
| 24 |
# output |
| 25 |
|
| 26 |
# flags: --line-ranges=12-12 --line-ranges=21-21 |
| 27 |
# NOTE: If you need to modify this file, pay special attention to the --line-ranges= |
| 28 |
# flag above as it's formatting specifically these lines. |
| 29 |
|
| 30 |
# Regression test for an edge case involving decorators and fmt: off/on. |
| 31 |
class MyClass: |
| 32 |
|
| 33 |
# fmt: off |
| 34 |
@decorator ( ) |
| 35 |
# fmt: on |
| 36 |
def method(): |
| 37 |
print("str") |
| 38 |
|
| 39 |
@decor( |
| 40 |
a=1, |
| 41 |
# fmt: off |
| 42 |
b=(2, 3), |
| 43 |
# fmt: on |
| 44 |
) |
| 45 |
def func(): |
| 46 |
pass |
| 47 |
|