File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
crates/ruff_python_formatter/tests/snapshots Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 11-- -
22source : crates / ruff_python_formatter / tests / fixtures .rs
33input_file : crates / ruff_python_formatter / resources / test / fixtures / ruff / range_formatting / clause_header .py
4- snapshot_kind : text
54-- -
65## Input
76` ` ` python
@@ -49,6 +48,14 @@ def test4(<RANGE_START> a):
4948
5049<RANGE_START >if b + c :<RANGE_END > # trailing clause header comment
5150 print("Not formatted" )
51+
52+ def test5():
53+ x = 1
54+ <RANGE_START >try:
55+ a;
56+ finally:
57+ b
58+ <RANGE_END >
5259```
5360
5461## Output
@@ -96,4 +103,11 @@ if a + b: # trailing clause header comment
96103
97104if b + c: # trailing clause header comment
98105 print("Not formatted" )
106+
107+ def test5():
108+ x = 1
109+ try:
110+ a
111+ finally:
112+ b
99113```
You can’t perform that action at this time.
0 commit comments