| 1 |
# flags: --line-ranges=9-11 |
| 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 |
# This is a specific case for Black's two-pass formatting behavior in `format_str`. |
| 6 |
# The second pass must respect the line ranges before the first pass. |
| 7 |
|
| 8 |
|
| 9 |
def restrict_to_this_line(arg1, |
| 10 |
arg2, |
| 11 |
arg3): |
| 12 |
print ( "This should not be formatted." ) |
| 13 |
print ( "Note that in the second pass, the original line range 9-11 will cover these print lines.") |
| 14 |
|
| 15 |
# output |
| 16 |
|
| 17 |
# flags: --line-ranges=9-11 |
| 18 |
# NOTE: If you need to modify this file, pay special attention to the --line-ranges= |
| 19 |
# flag above as it's formatting specifically these lines. |
| 20 |
|
| 21 |
# This is a specific case for Black's two-pass formatting behavior in `format_str`. |
| 22 |
# The second pass must respect the line ranges before the first pass. |
| 23 |
|
| 24 |
|
| 25 |
def restrict_to_this_line(arg1, arg2, arg3): |
| 26 |
print ( "This should not be formatted." ) |
| 27 |
print ( "Note that in the second pass, the original line range 9-11 will cover these print lines.") |