Skip to content

Commit dea4114

Browse files
committed
Revert snapshot changes
1 parent 144f253 commit dea4114

18 files changed

+56
-39
lines changed

crates/ruff_python_parser/tests/snapshots/valid_syntax@ambiguous_lpar_with_items_if_expr.py.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
33
input_file: crates/ruff_python_parser/resources/inline/ok/ambiguous_lpar_with_items_if_expr.py
4+
snapshot_kind: text
45
---
56
## AST
67

crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__await.py.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
33
input_file: crates/ruff_python_parser/resources/valid/expressions/await.py
4+
snapshot_kind: text
45
---
56
## AST
67

crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__dictionary.py.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
33
input_file: crates/ruff_python_parser/resources/valid/expressions/dictionary.py
4+
snapshot_kind: text
45
---
56
## AST
67

crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__generator.py.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
33
input_file: crates/ruff_python_parser/resources/valid/expressions/generator.py
4+
snapshot_kind: text
45
---
56
## AST
67

crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__if.py.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
33
input_file: crates/ruff_python_parser/resources/valid/expressions/if.py
4+
snapshot_kind: text
45
---
56
## AST
67

crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__list_comprehension.py.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
33
input_file: crates/ruff_python_parser/resources/valid/expressions/list_comprehension.py
4+
snapshot_kind: text
45
---
56
## AST
67

crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__named.py.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
33
input_file: crates/ruff_python_parser/resources/valid/expressions/named.py
4+
snapshot_kind: text
45
---
56
## AST
67

crates/ruff_python_parser/tests/snapshots/valid_syntax@lambda_with_valid_body.py.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
33
input_file: crates/ruff_python_parser/resources/inline/ok/lambda_with_valid_body.py
4+
snapshot_kind: text
45
---
56
## AST
67

crates/ruff_python_parser/tests/snapshots/valid_syntax@match_stmt_valid_guard_expr.py.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
33
input_file: crates/ruff_python_parser/resources/inline/ok/match_stmt_valid_guard_expr.py
4+
snapshot_kind: text
45
---
56
## AST
67

crates/ruff_python_parser/tests/snapshots/valid_syntax@nested_async_comprehension_py310.py.snap

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ input_file: crates/ruff_python_parser/resources/inline/ok/nested_async_comprehen
77
```
88
Module(
99
ModModule {
10-
range: 0..259,
10+
range: 0..181,
1111
body: [
1212
FunctionDef(
1313
StmtFunctionDef {
14-
range: 87..159,
14+
range: 44..116,
1515
is_async: true,
1616
decorator_list: [],
1717
name: Identifier {
1818
id: Name("f"),
19-
range: 97..98,
19+
range: 54..55,
2020
},
2121
type_params: None,
2222
parameters: Parameters {
23-
range: 98..100,
23+
range: 55..57,
2424
posonlyargs: [],
2525
args: [],
2626
vararg: None,
@@ -31,43 +31,43 @@ Module(
3131
body: [
3232
Expr(
3333
StmtExpr {
34-
range: 106..127,
34+
range: 63..84,
3535
value: ListComp(
3636
ExprListComp {
37-
range: 106..127,
37+
range: 63..84,
3838
elt: Name(
3939
ExprName {
40-
range: 107..108,
40+
range: 64..65,
4141
id: Name("_"),
4242
ctx: Load,
4343
},
4444
),
4545
generators: [
4646
Comprehension {
47-
range: 109..126,
47+
range: 66..83,
4848
target: Name(
4949
ExprName {
50-
range: 113..114,
50+
range: 70..71,
5151
id: Name("n"),
5252
ctx: Store,
5353
},
5454
),
5555
iter: Call(
5656
ExprCall {
57-
range: 118..126,
57+
range: 75..83,
5858
func: Name(
5959
ExprName {
60-
range: 118..123,
60+
range: 75..80,
6161
id: Name("range"),
6262
ctx: Load,
6363
},
6464
),
6565
arguments: Arguments {
66-
range: 123..126,
66+
range: 80..83,
6767
args: [
6868
NumberLiteral(
6969
ExprNumberLiteral {
70-
range: 124..125,
70+
range: 81..82,
7171
value: Int(
7272
3,
7373
),
@@ -88,43 +88,43 @@ Module(
8888
),
8989
Expr(
9090
StmtExpr {
91-
range: 132..159,
91+
range: 89..116,
9292
value: ListComp(
9393
ExprListComp {
94-
range: 132..159,
94+
range: 89..116,
9595
elt: Name(
9696
ExprName {
97-
range: 133..134,
97+
range: 90..91,
9898
id: Name("_"),
9999
ctx: Load,
100100
},
101101
),
102102
generators: [
103103
Comprehension {
104-
range: 135..158,
104+
range: 92..115,
105105
target: Name(
106106
ExprName {
107-
range: 145..146,
107+
range: 102..103,
108108
id: Name("n"),
109109
ctx: Store,
110110
},
111111
),
112112
iter: Call(
113113
ExprCall {
114-
range: 150..158,
114+
range: 107..115,
115115
func: Name(
116116
ExprName {
117-
range: 150..155,
117+
range: 107..112,
118118
id: Name("range"),
119119
ctx: Load,
120120
},
121121
),
122122
arguments: Arguments {
123-
range: 155..158,
123+
range: 112..115,
124124
args: [
125125
NumberLiteral(
126126
ExprNumberLiteral {
127-
range: 156..157,
127+
range: 113..114,
128128
value: Int(
129129
3,
130130
),
@@ -148,16 +148,16 @@ Module(
148148
),
149149
FunctionDef(
150150
StmtFunctionDef {
151-
range: 195..258,
151+
range: 117..180,
152152
is_async: true,
153153
decorator_list: [],
154154
name: Identifier {
155155
id: Name("f"),
156-
range: 205..206,
156+
range: 127..128,
157157
},
158158
type_params: None,
159159
parameters: Parameters {
160-
range: 206..208,
160+
range: 128..130,
161161
posonlyargs: [],
162162
args: [],
163163
vararg: None,
@@ -168,16 +168,16 @@ Module(
168168
body: [
169169
FunctionDef(
170170
StmtFunctionDef {
171-
range: 214..226,
171+
range: 136..148,
172172
is_async: false,
173173
decorator_list: [],
174174
name: Identifier {
175175
id: Name("g"),
176-
range: 218..219,
176+
range: 140..141,
177177
},
178178
type_params: None,
179179
parameters: Parameters {
180-
range: 219..221,
180+
range: 141..143,
181181
posonlyargs: [],
182182
args: [],
183183
vararg: None,
@@ -188,10 +188,10 @@ Module(
188188
body: [
189189
Expr(
190190
StmtExpr {
191-
range: 223..226,
191+
range: 145..148,
192192
value: EllipsisLiteral(
193193
ExprEllipsisLiteral {
194-
range: 223..226,
194+
range: 145..148,
195195
},
196196
),
197197
},
@@ -201,43 +201,43 @@ Module(
201201
),
202202
Expr(
203203
StmtExpr {
204-
range: 231..258,
204+
range: 153..180,
205205
value: ListComp(
206206
ExprListComp {
207-
range: 231..258,
207+
range: 153..180,
208208
elt: Name(
209209
ExprName {
210-
range: 232..233,
210+
range: 154..155,
211211
id: Name("_"),
212212
ctx: Load,
213213
},
214214
),
215215
generators: [
216216
Comprehension {
217-
range: 234..257,
217+
range: 156..179,
218218
target: Name(
219219
ExprName {
220-
range: 244..245,
220+
range: 166..167,
221221
id: Name("n"),
222222
ctx: Store,
223223
},
224224
),
225225
iter: Call(
226226
ExprCall {
227-
range: 249..257,
227+
range: 171..179,
228228
func: Name(
229229
ExprName {
230-
range: 249..254,
230+
range: 171..176,
231231
id: Name("range"),
232232
ctx: Load,
233233
},
234234
),
235235
arguments: Arguments {
236-
range: 254..257,
236+
range: 176..179,
237237
args: [
238238
NumberLiteral(
239239
ExprNumberLiteral {
240-
range: 255..256,
240+
range: 177..178,
241241
value: Int(
242242
3,
243243
),

0 commit comments

Comments
 (0)