Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Oct 19, 2023
1 parent c6204aa commit fd9f090
Show file tree
Hide file tree
Showing 118 changed files with 1,743 additions and 2,189 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ expression: trace
- TypeParamTypeVarTuple
- TypeParamParamSpec
- StmtExpr
- ExprConstant
- Ellipsis
- ExprEllipsisLiteral

6 changes: 2 additions & 4 deletions crates/ruff_python_ast/tests/snapshots/preorder__compare.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ expression: trace
- ModModule
- StmtExpr
- ExprCompare
- ExprConstant
- Int(4)
- ExprNumberLiteral
- Lt
- ExprName
- Lt
- ExprConstant
- Int(5)
- ExprNumberLiteral

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ expression: trace
- ExprBinOp
- ExprName
- Pow
- ExprConstant
- Int(2)
- ExprNumberLiteral
- Comprehension
- ExprName
- ExprName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ expression: trace
- Parameter
- Parameter
- Parameter
- ExprConstant
- Int(20)
- ExprNumberLiteral
- Parameter
- Parameter
- ExprConstant
- Int(5)
- ExprNumberLiteral
- Parameter
- ExprConstant
- Int(20)
- ExprNumberLiteral
- Parameter
- StmtPass

Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ expression: trace
- Parameters
- Parameter
- Parameter
- ExprConstant
- Int(34)
- ExprNumberLiteral
- Parameter
- ExprConstant
- Int(20)
- ExprNumberLiteral
- Parameter
- StmtPass

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ expression: trace
- TypeParamParamSpec
- Parameters
- StmtExpr
- ExprConstant
- Ellipsis
- ExprEllipsisLiteral

Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,20 @@ expression: trace
- PatternMatchClass
- ExprName
- PatternMatchValue
- ExprConstant
- Int(0)
- ExprNumberLiteral
- PatternMatchValue
- ExprConstant
- Int(0)
- ExprNumberLiteral
- StmtExpr
- ExprConstant
- Ellipsis
- ExprEllipsisLiteral
- MatchCase
- PatternMatchClass
- ExprName
- PatternMatchValue
- ExprConstant
- Int(0)
- ExprNumberLiteral
- PatternMatchValue
- ExprConstant
- Int(0)
- ExprNumberLiteral
- PatternMatchValue
- ExprConstant
- Int(0)
- ExprNumberLiteral
- StmtExpr
- ExprConstant
- Ellipsis
- ExprEllipsisLiteral

Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ expression: trace
- TypeParamTypeVarTuple
- TypeParamParamSpec
- StmtExpr
- ExprConstant
- ExprEllipsisLiteral

4 changes: 2 additions & 2 deletions crates/ruff_python_ast/tests/snapshots/visitor__compare.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ expression: trace
---
- StmtExpr
- ExprCompare
- ExprConstant
- ExprNumberLiteral
- Lt
- Lt
- ExprName
- ExprConstant
- ExprNumberLiteral

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ expression: trace
- ExprBinOp
- ExprName
- Pow
- ExprConstant
- ExprNumberLiteral

Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ expression: trace
---
- StmtFunctionDef
- Parameters
- ExprConstant
- ExprConstant
- ExprConstant
- ExprNumberLiteral
- ExprNumberLiteral
- ExprNumberLiteral
- Parameter
- Parameter
- Parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ expression: trace
---
- StmtFunctionDef
- Parameters
- ExprConstant
- ExprConstant
- ExprNumberLiteral
- ExprNumberLiteral
- Parameter
- Parameter
- Parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ expression: trace
- TypeParamParamSpec
- Parameters
- StmtExpr
- ExprConstant
- ExprEllipsisLiteral

Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ expression: trace
- PatternMatchClass
- ExprName
- PatternMatchValue
- ExprConstant
- ExprNumberLiteral
- PatternMatchValue
- ExprConstant
- ExprNumberLiteral
- StmtExpr
- ExprConstant
- ExprEllipsisLiteral
- MatchCase
- PatternMatchClass
- ExprName
- PatternMatchValue
- ExprConstant
- ExprNumberLiteral
- PatternMatchValue
- ExprConstant
- ExprNumberLiteral
- PatternMatchValue
- ExprConstant
- ExprNumberLiteral
- StmtExpr
- ExprConstant
- ExprEllipsisLiteral

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: comments.debug(test_case.source_code)
---
{
Node {
kind: ExprConstant,
kind: ExprNumberLiteral,
range: 11..12,
source: `5`,
}: {
Expand All @@ -19,7 +19,7 @@ expression: comments.debug(test_case.source_code)
],
},
Node {
kind: ExprConstant,
kind: ExprNumberLiteral,
range: 79..80,
source: `3`,
}: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: comments.debug(test_case.source_code)
---
{
Node {
kind: ExprConstant,
kind: ExprNumberLiteral,
range: 11..12,
source: `5`,
}: {
Expand Down Expand Up @@ -34,7 +34,7 @@ expression: comments.debug(test_case.source_code)
"trailing": [],
},
Node {
kind: ExprConstant,
kind: ExprNumberLiteral,
range: 103..104,
source: `3`,
}: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ expression: comments.debug(test_case.source_code)
"trailing": [],
},
Node {
kind: ExprConstant,
kind: ExprNumberLiteral,
range: 12..13,
source: `5`,
}: {
Expand All @@ -34,7 +34,7 @@ expression: comments.debug(test_case.source_code)
],
},
Node {
kind: ExprConstant,
kind: ExprNumberLiteral,
range: 125..126,
source: `3`,
}: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ expression: comments.debug(test_case.source_code)
"trailing": [],
},
Node {
kind: ExprConstant,
kind: ExprNumberLiteral,
range: 30..32,
source: `10`,
}: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ expression: comments.debug(test_case.source_code)
],
},
Node {
kind: ExprConstant,
kind: ExprNumberLiteral,
range: 11..12,
source: `3`,
}: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ expression: parse_ast
},
),
value: Some(
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 9..10,
value: Int(
1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ expression: parse_ast
ExprTuple {
range: 6..15,
elts: [
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 7..8,
value: Int(
1,
),
},
),
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 10..11,
value: Int(
2,
),
},
),
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 13..14,
value: Int(
3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ expression: parse_ast
ExprTuple {
range: 9..18,
elts: [
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 10..11,
value: Int(
1,
),
},
),
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 13..14,
value: Int(
2,
),
},
),
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 16..17,
value: Int(
3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,24 @@ expression: parse_ast
ExprTuple {
range: 9..18,
elts: [
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 10..11,
value: Int(
1,
),
},
),
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 13..14,
value: Int(
2,
),
},
),
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 16..17,
value: Int(
3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,24 @@ expression: parse_ast
ExprTuple {
range: 16..25,
elts: [
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 17..18,
value: Int(
1,
),
},
),
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 20..21,
value: Int(
2,
),
},
),
Constant(
ExprConstant {
NumberLiteral(
ExprNumberLiteral {
range: 23..24,
value: Int(
3,
Expand Down
Loading

0 comments on commit fd9f090

Please sign in to comment.