Fix tests and clippy warnings

This commit is contained in:
Dhruv Manilawala
2024-03-07 16:06:22 +05:30
parent 78ee6441a7
commit b5cc384bb1
35 changed files with 253 additions and 151 deletions

View File

@@ -126,8 +126,8 @@ Module(
StmtAssign {
range: 315..328,
targets: [
NamedExpr(
ExprNamedExpr {
Named(
ExprNamed {
range: 316..322,
target: Name(
ExprName {
@@ -275,8 +275,8 @@ Module(
StmtAssign {
range: 367..385,
targets: [
IfExp(
ExprIfExp {
If(
ExprIf {
range: 367..380,
test: Name(
ExprName {
@@ -558,8 +558,8 @@ Module(
StmtAssign {
range: 479..499,
targets: [
GeneratorExp(
ExprGeneratorExp {
Generator(
ExprGenerator {
range: 479..494,
elt: Name(
ExprName {
@@ -589,6 +589,7 @@ Module(
is_async: false,
},
],
parenthesized: true,
},
),
],
@@ -1667,6 +1668,3 @@ Module(
53 | (x, foo(), y) = (42, 42, 42)
| ^^^^^^^^^^^^^ Syntax Error: invalid assignment target
|

View File

@@ -12,8 +12,8 @@ Module(
Expr(
StmtExpr {
range: 120..128,
value: NamedExpr(
ExprNamedExpr {
value: Named(
ExprNamed {
range: 121..127,
target: NumberLiteral(
ExprNumberLiteral {
@@ -47,6 +47,3 @@ Module(
3 | (5 := 3)
| ^ Syntax Error: invalid assignment target
|

View File

@@ -12,8 +12,8 @@ Module(
If(
StmtIf {
range: 0..19,
test: NamedExpr(
ExprNamedExpr {
test: Named(
ExprNamed {
range: 3..9,
target: Name(
ExprName {
@@ -45,8 +45,8 @@ Module(
Expr(
StmtExpr {
range: 21..29,
value: NamedExpr(
ExprNamedExpr {
value: Named(
ExprNamed {
range: 22..28,
target: Name(
ExprName {
@@ -71,4 +71,3 @@ Module(
},
)
```