From 1ee1eb99650a7e305e21b98ae3a7dcdc49b9b421 Mon Sep 17 00:00:00 2001 From: Daniel Woznicki Date: Tue, 25 Jun 2024 00:54:46 -0700 Subject: [PATCH 1/5] Added support for simple flag in annotated assignment. --- parser/src/parser/ast.rs | 1 + parser/src/parser/parser.rs | 26 +++++++++++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/parser/src/parser/ast.rs b/parser/src/parser/ast.rs index 8644c785..61d10060 100644 --- a/parser/src/parser/ast.rs +++ b/parser/src/parser/ast.rs @@ -326,6 +326,7 @@ impl GetNode for Expression { pub struct Name { pub node: Node, pub id: String, + pub parenthesized: bool, } #[derive(Clone, Debug, PartialEq)] diff --git a/parser/src/parser/parser.rs b/parser/src/parser/parser.rs index ce9a7f65..5f001c0d 100644 --- a/parser/src/parser/parser.rs +++ b/parser/src/parser/parser.rs @@ -973,6 +973,7 @@ impl<'a> Parser<'a> { let mut expr = Ok(Expression::Name(Box::new(Name { node: self.finish_node(node), id, + parenthesized: false, }))); self.expect(Kind::Identifier); while self.eat(Kind::Dot) { @@ -1270,13 +1271,17 @@ impl<'a> Parser<'a> { } else { None }; + let simple = if let Expression::Name(name) = &lhs { + !name.parenthesized + } else { + false + }; Ok(Statement::AnnAssignStatement(Box::new(AnnAssign { node: self.finish_node(start), target: lhs, annotation, value, - // TODO: implement simple - simple: true, + simple, }))) } @@ -1599,6 +1604,7 @@ impl<'a> Parser<'a> { target: Expression::Name(Box::new(Name { node: identifier_node, id: identifier, + parenthesized: false, })), value, }))); @@ -1606,6 +1612,7 @@ impl<'a> Parser<'a> { return Ok(Expression::Name(Box::new(Name { node: identifier_node, id: identifier, + parenthesized: false, }))); } @@ -1778,6 +1785,7 @@ impl<'a> Parser<'a> { return Ok(Expression::Name(Box::new(Name { node: identifier_node, id: identifier, + parenthesized: false, }))); } }, @@ -2486,6 +2494,7 @@ impl<'a> Parser<'a> { Expression::Name(Box::new(Name { node: self.finish_node(start), id: val, + parenthesized: false, })) } Kind::Integer => { @@ -2658,6 +2667,7 @@ impl<'a> Parser<'a> { Expression::Name(Box::new(Name { node: self.finish_node(start), id: val, + parenthesized: false, })) } Kind::Integer => { @@ -2851,6 +2861,7 @@ impl<'a> Parser<'a> { Ok(Expression::Name(Box::new(Name { node: self.finish_node(node), id: value, + parenthesized: false, }))) } @@ -2934,7 +2945,16 @@ impl<'a> Parser<'a> { seen_comma = true; } if elements.len() == 1 && !seen_comma { - return Ok(elements.pop().unwrap()); + let expr = elements.pop().unwrap(); + if let Expression::Name(name) = expr { + return Ok(Expression::Name(Box::new(Name { + node: name.node, + id: name.id, + parenthesized: true, + }))); + } else { + return Ok(expr); + } } Ok(Expression::Tuple(Box::new(Tuple { node: self.finish_node(node), From 7f0c53b6dff1a57cf33d8dc17425ba531a5bc005 Mon Sep 17 00:00:00 2001 From: Daniel Woznicki Date: Tue, 25 Jun 2024 21:05:17 -0700 Subject: [PATCH 2/5] Updated tests with new parenthesized field. --- ...__parser__tests__annotated_assignment.snap | 28 +++++++++++ ...arser__parser__tests__attribute_ref-2.snap | 1 + ...arser__parser__tests__attribute_ref-3.snap | 1 + ...arser__parser__tests__attribute_ref-4.snap | 1 + ..._parser__parser__tests__attribute_ref.snap | 1 + ...rser__parser__tests__await_expression.snap | 1 + ..._parser__parser__parser__tests__class.snap | 19 +++++++ ..._parser__parser__tests__comparison-10.snap | 2 + ..._parser__parser__tests__comparison-11.snap | 3 ++ ...__parser__parser__tests__comparison-2.snap | 2 + ...__parser__parser__tests__comparison-3.snap | 2 + ...__parser__parser__tests__comparison-4.snap | 2 + ...__parser__parser__tests__comparison-5.snap | 2 + ...__parser__parser__tests__comparison-6.snap | 2 + ...__parser__parser__tests__comparison-7.snap | 2 + ...__parser__parser__tests__comparison-8.snap | 2 + ...__parser__parser__tests__comparison-9.snap | 2 + ...er__parser__parser__tests__comparison.snap | 2 + ...parser__tests__conditional_expression.snap | 5 ++ ...n_parser__parser__parser__tests__dict.snap | 37 ++++++++++++++ ...__parser__tests__ellipsis_statement-3.snap | 1 + ...on_parser__parser__parser__tests__for.snap | 16 ++++++ ...ser__parser__parser__tests__fstring-2.snap | 1 + ...ser__parser__parser__tests__fstring-3.snap | 2 + ...ser__parser__parser__tests__fstring-4.snap | 3 ++ ...__parser__parser__tests__function_def.snap | 23 +++++++++ ...ser__parser__parser__tests__functions.snap | 49 +++++++++++++++++++ ..._parser__tests__generator_expressions.snap | 41 ++++++++++++++++ ...hon_parser__parser__parser__tests__if.snap | 22 +++++++++ ...rser__parser__parser__tests__lambda-2.snap | 1 + ...rser__parser__parser__tests__lambda-3.snap | 1 + ...rser__parser__parser__tests__lambda-4.snap | 1 + ...rser__parser__parser__tests__lambda-5.snap | 1 + ...rser__parser__parser__tests__lambda-6.snap | 1 + ...rser__parser__parser__tests__lambda-7.snap | 1 + ...rser__parser__parser__tests__lambda-8.snap | 1 + ...rser__parser__parser__tests__lambda-9.snap | 1 + ...parser__parser__parser__tests__lambda.snap | 1 + ..._parser__parser__parser__tests__lists.snap | 40 +++++++++++++++ ..._parser__parser__parser__tests__match.snap | 11 +++++ ...rser__parser__tests__named_expression.snap | 2 + ...rser__parser__parser__tests__newlines.snap | 4 ++ ...r__parser__tests__parse_assert_stmt-2.snap | 2 + ...ser__parser__tests__parse_assert_stmt.snap | 1 + ...r__parser__tests__parse_assignment-10.snap | 1 + ...r__parser__tests__parse_assignment-11.snap | 1 + ...r__parser__tests__parse_assignment-12.snap | 1 + ...r__parser__tests__parse_assignment-13.snap | 1 + ...r__parser__tests__parse_assignment-14.snap | 1 + ...r__parser__tests__parse_assignment-15.snap | 2 + ...r__parser__tests__parse_assignment-16.snap | 4 ++ ...r__parser__tests__parse_assignment-17.snap | 1 + ...r__parser__tests__parse_assignment-18.snap | 1 + ...r__parser__tests__parse_assignment-19.snap | 1 + ...er__parser__tests__parse_assignment-2.snap | 1 + ...r__parser__tests__parse_assignment-20.snap | 1 + ...r__parser__tests__parse_assignment-21.snap | 1 + ...r__parser__tests__parse_assignment-22.snap | 1 + ...r__parser__tests__parse_assignment-23.snap | 1 + ...r__parser__tests__parse_assignment-24.snap | 1 + ...r__parser__tests__parse_assignment-25.snap | 1 + ...r__parser__tests__parse_assignment-26.snap | 1 + ...r__parser__tests__parse_assignment-27.snap | 1 + ...r__parser__tests__parse_assignment-28.snap | 1 + ...er__parser__tests__parse_assignment-3.snap | 1 + ...er__parser__tests__parse_assignment-4.snap | 1 + ...er__parser__tests__parse_assignment-5.snap | 1 + ...er__parser__tests__parse_assignment-6.snap | 1 + ...er__parser__tests__parse_assignment-7.snap | 1 + ...er__parser__tests__parse_assignment-8.snap | 1 + ...er__parser__tests__parse_assignment-9.snap | 1 + ...rser__parser__tests__parse_assignment.snap | 1 + ...arser__parser__tests__parse_bool_op-2.snap | 2 + ...arser__parser__tests__parse_bool_op-3.snap | 3 ++ ...arser__parser__tests__parse_bool_op-4.snap | 3 ++ ..._parser__parser__tests__parse_bool_op.snap | 2 + ...__parser__parser__tests__parse_call-2.snap | 2 + ...__parser__parser__tests__parse_call-3.snap | 3 ++ ...__parser__parser__tests__parse_call-4.snap | 2 + ...__parser__parser__tests__parse_call-5.snap | 4 ++ ...__parser__parser__tests__parse_call-6.snap | 5 ++ ...__parser__parser__tests__parse_call-7.snap | 6 +++ ...__parser__parser__tests__parse_call-8.snap | 2 + ...er__parser__parser__tests__parse_call.snap | 1 + ...rser__parser__tests__parse_del_stmt-2.snap | 2 + ...rser__parser__tests__parse_del_stmt-3.snap | 2 + ...parser__parser__tests__parse_del_stmt.snap | 1 + ...rser__parser__tests__parse_unary_op-2.snap | 1 + ...rser__parser__tests__parse_unary_op-3.snap | 1 + ...rser__parser__tests__parse_unary_op-4.snap | 1 + ...parser__parser__tests__parse_unary_op.snap | 1 + ...arser__tests__parse_yield_statement-2.snap | 1 + ...arser__tests__parse_yield_statement-3.snap | 2 + ...arser__tests__parse_yield_statement-4.snap | 2 + ...ser__parser__tests__raise_statement-2.snap | 1 + ...ser__parser__tests__raise_statement-3.snap | 2 + ...r__parser__tests__separate_statements.snap | 6 +++ ...n_parser__parser__parser__tests__sets.snap | 49 +++++++++++++++++++ ...arser__parser__parser__tests__starred.snap | 1 + ...parser__parser__parser__tests__string.snap | 8 +++ ...ser__parser__parser__tests__subscript.snap | 48 ++++++++++++++++++ ...on_parser__parser__parser__tests__try.snap | 40 +++++++++++++++ ...arser__parser__tests__try_statement-2.snap | 1 + ...arser__parser__tests__try_statement-3.snap | 1 + ...arser__parser__tests__try_statement-4.snap | 1 + ...arser__parser__tests__try_statement-5.snap | 1 + ...arser__parser__tests__try_statement-6.snap | 1 + ...arser__parser__parser__tests__tuple-2.snap | 3 ++ ...arser__parser__parser__tests__tuple-3.snap | 3 ++ ...arser__parser__parser__tests__tuple-4.snap | 3 ++ ...arser__parser__parser__tests__tuple-5.snap | 1 + ...arser__parser__parser__tests__tuple-6.snap | 3 ++ ..._parser__parser__parser__tests__tuple.snap | 3 ++ ...r__parser__parser__tests__types_alias.snap | 4 ++ ...ser__parser__tests__while_statement-2.snap | 1 + ...ser__parser__tests__while_statement-3.snap | 3 ++ ...arser__parser__tests__while_statement.snap | 1 + ...n_parser__parser__parser__tests__with.snap | 22 +++++++++ ...er__parser__tests__yield_expression-2.snap | 1 + ...er__parser__tests__yield_expression-3.snap | 1 + 120 files changed, 634 insertions(+) diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap index 75dd8d56..d0569108 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), annotation: Name( @@ -30,6 +31,7 @@ Module { end: 6, }, id: "int", + parenthesized: false, }, ), value: Some( @@ -59,6 +61,7 @@ Module { end: 13, }, id: "b", + parenthesized: false, }, ), annotation: Subscript( @@ -74,6 +77,7 @@ Module { end: 20, }, id: "tuple", + parenthesized: false, }, ), slice: Tuple( @@ -90,6 +94,7 @@ Module { end: 24, }, id: "int", + parenthesized: false, }, ), Name( @@ -99,6 +104,7 @@ Module { end: 29, }, id: "int", + parenthesized: false, }, ), ], @@ -152,6 +158,7 @@ Module { end: 40, }, id: "c", + parenthesized: false, }, ), annotation: Subscript( @@ -167,6 +174,7 @@ Module { end: 47, }, id: "tuple", + parenthesized: false, }, ), slice: Tuple( @@ -183,6 +191,7 @@ Module { end: 51, }, id: "str", + parenthesized: false, }, ), Name( @@ -192,6 +201,7 @@ Module { end: 56, }, id: "int", + parenthesized: false, }, ), ], @@ -245,6 +255,7 @@ Module { end: 71, }, id: "d", + parenthesized: false, }, ), annotation: Subscript( @@ -260,6 +271,7 @@ Module { end: 78, }, id: "tuple", + parenthesized: false, }, ), slice: Tuple( @@ -276,6 +288,7 @@ Module { end: 82, }, id: "int", + parenthesized: false, }, ), Name( @@ -285,6 +298,7 @@ Module { end: 87, }, id: "int", + parenthesized: false, }, ), ], @@ -300,6 +314,7 @@ Module { end: 92, }, id: "b", + parenthesized: false, }, ), ), @@ -319,6 +334,7 @@ Module { end: 95, }, id: "e", + parenthesized: false, }, ), annotation: Subscript( @@ -334,6 +350,7 @@ Module { end: 102, }, id: "tuple", + parenthesized: false, }, ), slice: Tuple( @@ -350,6 +367,7 @@ Module { end: 106, }, id: "int", + parenthesized: false, }, ), Name( @@ -359,6 +377,7 @@ Module { end: 111, }, id: "int", + parenthesized: false, }, ), ], @@ -383,6 +402,7 @@ Module { end: 115, }, id: "f", + parenthesized: false, }, ), annotation: Subscript( @@ -398,6 +418,7 @@ Module { end: 122, }, id: "tuple", + parenthesized: false, }, ), slice: Tuple( @@ -414,6 +435,7 @@ Module { end: 126, }, id: "int", + parenthesized: false, }, ), Name( @@ -423,6 +445,7 @@ Module { end: 131, }, id: "int", + parenthesized: false, }, ), ], @@ -438,6 +461,7 @@ Module { end: 136, }, id: "e", + parenthesized: false, }, ), ), @@ -457,6 +481,7 @@ Module { end: 139, }, id: "g", + parenthesized: false, }, ), annotation: Subscript( @@ -472,6 +497,7 @@ Module { end: 146, }, id: "tuple", + parenthesized: false, }, ), slice: Tuple( @@ -488,6 +514,7 @@ Module { end: 150, }, id: "int", + parenthesized: false, }, ), Name( @@ -497,6 +524,7 @@ Module { end: 164, }, id: "int", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap index aa38bb3d..7237904f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap @@ -28,6 +28,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), attr: "b", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap index 4c447731..5b0cb2fb 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), attr: "b_c", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap index d5820c7d..2110a61c 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap @@ -34,6 +34,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), attr: "b", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap index 5311d506..be72abe0 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), attr: "b", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap index 995db5b6..7194a692 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap @@ -22,6 +22,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap index 2286efe9..312a163f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap @@ -69,6 +69,7 @@ Module { end: 45, }, id: "b", + parenthesized: false, }, ), Name( @@ -78,6 +79,7 @@ Module { end: 48, }, id: "c", + parenthesized: false, }, ), ], @@ -111,6 +113,7 @@ Module { end: 66, }, id: "b", + parenthesized: false, }, ), Starred( @@ -126,6 +129,7 @@ Module { end: 70, }, id: "c", + parenthesized: false, }, ), }, @@ -145,6 +149,7 @@ Module { end: 75, }, id: "d", + parenthesized: false, }, ), }, @@ -178,6 +183,7 @@ Module { end: 93, }, id: "b", + parenthesized: false, }, ), Name( @@ -187,6 +193,7 @@ Module { end: 96, }, id: "c", + parenthesized: false, }, ), Name( @@ -196,6 +203,7 @@ Module { end: 99, }, id: "d", + parenthesized: false, }, ), ], @@ -241,6 +249,7 @@ Module { end: 114, }, id: "decor", + parenthesized: false, }, ), ], @@ -361,6 +370,7 @@ Module { end: 181, }, id: "U", + parenthesized: false, }, ), ), @@ -405,6 +415,7 @@ Module { end: 202, }, id: "U", + parenthesized: false, }, ), ), @@ -425,6 +436,7 @@ Module { end: 208, }, id: "W", + parenthesized: false, }, ), ), @@ -545,6 +557,7 @@ Module { end: 270, }, id: "U", + parenthesized: false, }, ), ), @@ -598,6 +611,7 @@ Module { end: 295, }, id: "U", + parenthesized: false, }, ), ), @@ -618,6 +632,7 @@ Module { end: 301, }, id: "W", + parenthesized: false, }, ), ), @@ -747,6 +762,7 @@ Module { end: 369, }, id: "U", + parenthesized: false, }, ), ), @@ -800,6 +816,7 @@ Module { end: 395, }, id: "U", + parenthesized: false, }, ), ), @@ -820,6 +837,7 @@ Module { end: 401, }, id: "W", + parenthesized: false, }, ), ), @@ -925,6 +943,7 @@ Module { end: 454, }, id: "U", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap index c65672de..4f166da8 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 10, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap index 23360964..33f86533 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -36,6 +37,7 @@ Module { end: 5, }, id: "b", + parenthesized: false, }, ), Name( @@ -45,6 +47,7 @@ Module { end: 9, }, id: "c", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap index 4a4f1dbc..ada1697e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap index 0f5060d4..3bea428b 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 5, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap index bfc057bf..ce98dba5 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 5, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap index 8877db21..53450c1d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap index a905a457..cec0f363 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap index b8b3fff8..8ac3eb93 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap index ff1b8ee8..56705e9b 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 10, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap index cae71096..a5b9a075 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap index b04edfba..b5c9f468 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -35,6 +36,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap index 691ea8fa..edf4e41e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap @@ -22,6 +22,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), body: Name( @@ -31,6 +32,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), orelse: IfExp( @@ -46,6 +48,7 @@ Module { end: 18, }, id: "d", + parenthesized: false, }, ), body: Name( @@ -55,6 +58,7 @@ Module { end: 13, }, id: "c", + parenthesized: false, }, ), orelse: Name( @@ -64,6 +68,7 @@ Module { end: 25, }, id: "e", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap index fea075df..38a3f8b5 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap @@ -23,6 +23,7 @@ Module { end: 2, }, id: "a", + parenthesized: false, }, ), Name( @@ -32,6 +33,7 @@ Module { end: 8, }, id: "c", + parenthesized: false, }, ), ], @@ -43,6 +45,7 @@ Module { end: 5, }, id: "b", + parenthesized: false, }, ), Name( @@ -52,6 +55,7 @@ Module { end: 11, }, id: "d", + parenthesized: false, }, ), ], @@ -80,6 +84,7 @@ Module { end: 16, }, id: "a", + parenthesized: false, }, ), Name( @@ -89,6 +94,7 @@ Module { end: 22, }, id: "c", + parenthesized: false, }, ), ], @@ -100,6 +106,7 @@ Module { end: 19, }, id: "b", + parenthesized: false, }, ), Name( @@ -109,6 +116,7 @@ Module { end: 25, }, id: "d", + parenthesized: false, }, ), ], @@ -140,6 +148,7 @@ Module { end: 31, }, id: "a", + parenthesized: false, }, ), Name( @@ -149,6 +158,7 @@ Module { end: 38, }, id: "c", + parenthesized: false, }, ), ], @@ -160,6 +170,7 @@ Module { end: 35, }, id: "b", + parenthesized: false, }, ), Name( @@ -169,6 +180,7 @@ Module { end: 41, }, id: "d", + parenthesized: false, }, ), ], @@ -200,6 +212,7 @@ Module { end: 47, }, id: "a", + parenthesized: false, }, ), Name( @@ -209,6 +222,7 @@ Module { end: 53, }, id: "c", + parenthesized: false, }, ), Name( @@ -218,6 +232,7 @@ Module { end: 63, }, id: "e", + parenthesized: false, }, ), ], @@ -229,6 +244,7 @@ Module { end: 50, }, id: "b", + parenthesized: false, }, ), Name( @@ -238,6 +254,7 @@ Module { end: 56, }, id: "d", + parenthesized: false, }, ), Name( @@ -247,6 +264,7 @@ Module { end: 66, }, id: "f", + parenthesized: false, }, ), ], @@ -278,6 +296,7 @@ Module { end: 72, }, id: "a", + parenthesized: false, }, ), ], @@ -289,6 +308,7 @@ Module { end: 75, }, id: "b", + parenthesized: false, }, ), ], @@ -313,6 +333,7 @@ Module { end: 83, }, id: "a", + parenthesized: false, }, ), Name( @@ -322,6 +343,7 @@ Module { end: 89, }, id: "c", + parenthesized: false, }, ), ], @@ -333,6 +355,7 @@ Module { end: 86, }, id: "b", + parenthesized: false, }, ), Name( @@ -342,6 +365,7 @@ Module { end: 92, }, id: "d", + parenthesized: false, }, ), ], @@ -386,6 +410,7 @@ Module { end: 115, }, id: "name", + parenthesized: false, }, ), iter: Call( @@ -401,6 +426,7 @@ Module { end: 128, }, id: "get_names", + parenthesized: false, }, ), args: [], @@ -454,6 +480,7 @@ Module { end: 152, }, id: "name", + parenthesized: false, }, ), iter: Call( @@ -469,6 +496,7 @@ Module { end: 165, }, id: "get_names", + parenthesized: false, }, ), args: [], @@ -504,6 +532,7 @@ Module { end: 191, }, id: "aggregated_key_stats", + parenthesized: false, }, ), slice: Name( @@ -513,6 +542,7 @@ Module { end: 200, }, id: "idx_stat", + parenthesized: false, }, ), }, @@ -552,6 +582,7 @@ Module { end: 229, }, id: "filter_value_NONE", + parenthesized: false, }, ), Name( @@ -561,6 +592,7 @@ Module { end: 253, }, id: "filter_key_found", + parenthesized: false, }, ), Name( @@ -570,6 +602,7 @@ Module { end: 273, }, id: "client_types", + parenthesized: false, }, ), Name( @@ -579,6 +612,7 @@ Module { end: 293, }, id: "market_watch", + parenthesized: false, }, ), Name( @@ -588,6 +622,7 @@ Module { end: 315, }, id: "symbol", + parenthesized: false, }, ), Name( @@ -597,6 +632,7 @@ Module { end: 333, }, id: "name", + parenthesized: false, }, ), ], @@ -618,6 +654,7 @@ Module { end: 340, }, id: "di", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap index 92be5aa4..3cbc2640 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap index faae36db..cc2d23a4 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap @@ -21,6 +21,7 @@ Module { end: 5, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -30,6 +31,7 @@ Module { end: 10, }, id: "b", + parenthesized: false, }, ), body: [ @@ -58,6 +60,7 @@ Module { end: 23, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -67,6 +70,7 @@ Module { end: 28, }, id: "b", + parenthesized: false, }, ), body: [ @@ -95,6 +99,7 @@ Module { end: 45, }, id: "a", + parenthesized: false, }, ), iter: Call( @@ -110,6 +115,7 @@ Module { end: 54, }, id: "range", + parenthesized: false, }, ), args: [ @@ -143,6 +149,7 @@ Module { end: 65, }, id: "a", + parenthesized: false, }, ), ], @@ -173,6 +180,7 @@ Module { end: 81, }, id: "b", + parenthesized: false, }, ), ], @@ -203,6 +211,7 @@ Module { end: 92, }, id: "a", + parenthesized: false, }, ), iter: Tuple( @@ -225,6 +234,7 @@ Module { end: 101, }, id: "range", + parenthesized: false, }, ), args: [ @@ -256,6 +266,7 @@ Module { end: 112, }, id: "range", + parenthesized: false, }, ), args: [ @@ -292,6 +303,7 @@ Module { end: 123, }, id: "a", + parenthesized: false, }, ), ], @@ -323,6 +335,7 @@ Module { end: 140, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -332,6 +345,7 @@ Module { end: 145, }, id: "b", + parenthesized: false, }, ), body: [ @@ -360,6 +374,7 @@ Module { end: 164, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -369,6 +384,7 @@ Module { end: 169, }, id: "b", + parenthesized: false, }, ), body: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap index 4a56a0d6..626156f7 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap @@ -38,6 +38,7 @@ Module { end: 10, }, id: "a", + parenthesized: false, }, ), conversion: -1, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap index 505f3000..9939c2a0 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap @@ -38,6 +38,7 @@ Module { end: 10, }, id: "a", + parenthesized: false, }, ), conversion: -1, @@ -66,6 +67,7 @@ Module { end: 14, }, id: "b", + parenthesized: false, }, ), conversion: -1, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap index 17c7e719..a973d930 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap @@ -38,6 +38,7 @@ Module { end: 10, }, id: "a", + parenthesized: false, }, ), conversion: -1, @@ -66,6 +67,7 @@ Module { end: 14, }, id: "b", + parenthesized: false, }, ), conversion: -1, @@ -94,6 +96,7 @@ Module { end: 18, }, id: "c", + parenthesized: false, }, ), conversion: -1, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap index 69b17035..2e5e4636 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap @@ -303,6 +303,7 @@ Module { end: 109, }, id: "decor", + parenthesized: false, }, ), ], @@ -451,6 +452,7 @@ Module { end: 131, }, id: "decor", + parenthesized: false, }, ), ], @@ -791,6 +793,7 @@ Module { end: 338, }, id: "U", + parenthesized: false, }, ), ), @@ -848,6 +851,7 @@ Module { end: 359, }, id: "U", + parenthesized: false, }, ), ), @@ -868,6 +872,7 @@ Module { end: 365, }, id: "W", + parenthesized: false, }, ), ), @@ -1027,6 +1032,7 @@ Module { end: 427, }, id: "U", + parenthesized: false, }, ), ), @@ -1093,6 +1099,7 @@ Module { end: 452, }, id: "U", + parenthesized: false, }, ), ), @@ -1113,6 +1120,7 @@ Module { end: 458, }, id: "W", + parenthesized: false, }, ), ), @@ -1281,6 +1289,7 @@ Module { end: 526, }, id: "U", + parenthesized: false, }, ), ), @@ -1347,6 +1356,7 @@ Module { end: 552, }, id: "U", + parenthesized: false, }, ), ), @@ -1367,6 +1377,7 @@ Module { end: 558, }, id: "W", + parenthesized: false, }, ), ), @@ -1498,6 +1509,7 @@ Module { end: 611, }, id: "U", + parenthesized: false, }, ), ), @@ -1554,6 +1566,7 @@ Module { end: 683, }, id: "bool", + parenthesized: false, }, ), ), @@ -1572,6 +1585,7 @@ Module { end: 715, }, id: "bool", + parenthesized: false, }, ), ), @@ -1590,6 +1604,7 @@ Module { end: 750, }, id: "bool", + parenthesized: false, }, ), ), @@ -1608,6 +1623,7 @@ Module { end: 784, }, id: "bool", + parenthesized: false, }, ), ), @@ -1632,6 +1648,7 @@ Module { end: 923, }, id: "tuple", + parenthesized: false, }, ), slice: Tuple( @@ -1661,6 +1678,7 @@ Module { end: 928, }, id: "type", + parenthesized: false, }, ), slice: Name( @@ -1670,6 +1688,7 @@ Module { end: 932, }, id: "Any", + parenthesized: false, }, ), }, @@ -1687,6 +1706,7 @@ Module { end: 944, }, id: "Callable", + parenthesized: false, }, ), slice: Tuple( @@ -1712,6 +1732,7 @@ Module { end: 953, }, id: "Any", + parenthesized: false, }, ), ], @@ -1810,6 +1831,7 @@ Module { end: 984, }, id: "Any", + parenthesized: false, }, ), ), @@ -1839,6 +1861,7 @@ Module { end: 1007, }, id: "IdentityFunction", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap index 12e704d4..e05250f8 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap @@ -52,6 +52,7 @@ Module { end: 50, }, id: "ticker_index", + parenthesized: false, }, ), ], @@ -74,6 +75,7 @@ Module { end: 65, }, id: "symbols_data", + parenthesized: false, }, ), attr: "get_ticker_index", @@ -87,6 +89,7 @@ Module { end: 89, }, id: "symbol", + parenthesized: false, }, ), ], @@ -116,6 +119,7 @@ Module { end: 111, }, id: "ticker_index", + parenthesized: false, }, ), ops: [ @@ -149,6 +153,7 @@ Module { end: 142, }, id: "market_symbol", + parenthesized: false, }, ), ], @@ -165,6 +170,7 @@ Module { end: 160, }, id: "get_symbol_info", + parenthesized: false, }, ), args: [ @@ -175,6 +181,7 @@ Module { end: 167, }, id: "symbol", + parenthesized: false, }, ), ], @@ -204,6 +211,7 @@ Module { end: 193, }, id: "market_symbol", + parenthesized: false, }, ), ops: [ @@ -243,6 +251,7 @@ Module { end: 231, }, id: "symbols_data", + parenthesized: false, }, ), attr: "append_symbol_to_file", @@ -256,6 +265,7 @@ Module { end: 267, }, id: "market_symbol", + parenthesized: false, }, ), ], @@ -279,6 +289,7 @@ Module { end: 293, }, id: "ticker_index", + parenthesized: false, }, ), ], @@ -295,6 +306,7 @@ Module { end: 309, }, id: "market_symbol", + parenthesized: false, }, ), attr: "index", @@ -324,6 +336,7 @@ Module { end: 339, }, id: "ticker_index", + parenthesized: false, }, ), ), @@ -364,6 +377,7 @@ Module { end: 397, }, id: "str", + parenthesized: false, }, ), ), @@ -390,6 +404,7 @@ Module { end: 415, }, id: "url", + parenthesized: false, }, ), ], @@ -412,6 +427,7 @@ Module { end: 442, }, id: "TSE_CLIENT_TYPE_DATA_URL", + parenthesized: false, }, ), attr: "format", @@ -425,6 +441,7 @@ Module { end: 462, }, id: "ticker_index", + parenthesized: false, }, ), ], @@ -460,6 +477,7 @@ Module { end: 495, }, id: "requests_retry_session", + parenthesized: false, }, ), args: [], @@ -476,6 +494,7 @@ Module { end: 508, }, id: "session", + parenthesized: false, }, ), ), @@ -496,6 +515,7 @@ Module { end: 526, }, id: "response", + parenthesized: false, }, ), ], @@ -518,6 +538,7 @@ Module { end: 536, }, id: "session", + parenthesized: false, }, ), attr: "get", @@ -531,6 +552,7 @@ Module { end: 544, }, id: "url", + parenthesized: false, }, ), ], @@ -577,6 +599,7 @@ Module { end: 565, }, id: "data", + parenthesized: false, }, ), ], @@ -605,6 +628,7 @@ Module { end: 576, }, id: "response", + parenthesized: false, }, ), attr: "text", @@ -645,6 +669,7 @@ Module { end: 608, }, id: "data", + parenthesized: false, }, ), ), @@ -660,6 +685,7 @@ Module { end: 406, }, id: "List", + parenthesized: false, }, ), ), @@ -701,6 +727,7 @@ Module { end: 635, }, id: "pd", + parenthesized: false, }, ), attr: "DataFrame", @@ -722,6 +749,7 @@ Module { end: 656, }, id: "str", + parenthesized: false, }, ), ), @@ -759,6 +787,7 @@ Module { end: 669, }, id: "len", + parenthesized: false, }, ), args: [ @@ -769,6 +798,7 @@ Module { end: 672, }, id: "df", + parenthesized: false, }, ), ], @@ -820,6 +850,7 @@ Module { end: 697, }, id: "pd", + parenthesized: false, }, ), attr: "DataFrame", @@ -848,6 +879,7 @@ Module { end: 720, }, id: "list", + parenthesized: false, }, ), args: [ @@ -870,6 +902,7 @@ Module { end: 745, }, id: "api_to_orderbook_mapping", + parenthesized: false, }, ), attr: "keys", @@ -920,6 +953,7 @@ Module { end: 761, }, id: "df", + parenthesized: false, }, ), attr: "rename", @@ -942,6 +976,7 @@ Module { end: 790, }, id: "reversed_keys", + parenthesized: false, }, ), }, @@ -983,6 +1018,7 @@ Module { end: 812, }, id: "df", + parenthesized: false, }, ), ], @@ -1005,6 +1041,7 @@ Module { end: 817, }, id: "df", + parenthesized: false, }, ), attr: "loc", @@ -1041,6 +1078,7 @@ Module { end: 829, }, id: "list", + parenthesized: false, }, ), args: [ @@ -1063,6 +1101,7 @@ Module { end: 854, }, id: "api_to_orderbook_mapping", + parenthesized: false, }, ), attr: "keys", @@ -1107,6 +1146,7 @@ Module { end: 870, }, id: "df", + parenthesized: false, }, ), slice: Constant( @@ -1140,6 +1180,7 @@ Module { end: 887, }, id: "pd", + parenthesized: false, }, ), attr: "to_datetime", @@ -1167,6 +1208,7 @@ Module { end: 913, }, id: "date", + parenthesized: false, }, ), right: Constant( @@ -1205,6 +1247,7 @@ Module { end: 924, }, id: "df", + parenthesized: false, }, ), slice: Constant( @@ -1229,6 +1272,7 @@ Module { end: 947, }, id: "str", + parenthesized: false, }, ), ], @@ -1280,6 +1324,7 @@ Module { end: 985, }, id: "df", + parenthesized: false, }, ), ], @@ -1302,6 +1347,7 @@ Module { end: 990, }, id: "df", + parenthesized: false, }, ), attr: "sort_values", @@ -1402,6 +1448,7 @@ Module { end: 1056, }, id: "df", + parenthesized: false, }, ), attr: "set_index", @@ -1463,6 +1510,7 @@ Module { end: 1099, }, id: "df", + parenthesized: false, }, ), attr: "drop", @@ -1536,6 +1584,7 @@ Module { end: 1151, }, id: "df", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap index 3016d066..880cc924 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap @@ -22,6 +22,7 @@ Module { end: 2, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -37,6 +38,7 @@ Module { end: 8, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -46,6 +48,7 @@ Module { end: 13, }, id: "b", + parenthesized: false, }, ), ifs: [], @@ -69,6 +72,7 @@ Module { end: 18, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -84,6 +88,7 @@ Module { end: 24, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -93,6 +98,7 @@ Module { end: 29, }, id: "b", + parenthesized: false, }, ), ifs: [ @@ -103,6 +109,7 @@ Module { end: 34, }, id: "c", + parenthesized: false, }, ), ], @@ -126,6 +133,7 @@ Module { end: 39, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -141,6 +149,7 @@ Module { end: 45, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -150,6 +159,7 @@ Module { end: 50, }, id: "b", + parenthesized: false, }, ), ifs: [ @@ -160,6 +170,7 @@ Module { end: 55, }, id: "c", + parenthesized: false, }, ), Name( @@ -169,6 +180,7 @@ Module { end: 60, }, id: "d", + parenthesized: false, }, ), ], @@ -192,6 +204,7 @@ Module { end: 65, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -207,6 +220,7 @@ Module { end: 71, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -216,6 +230,7 @@ Module { end: 76, }, id: "b", + parenthesized: false, }, ), ifs: [], @@ -233,6 +248,7 @@ Module { end: 82, }, id: "c", + parenthesized: false, }, ), iter: Name( @@ -242,6 +258,7 @@ Module { end: 87, }, id: "d", + parenthesized: false, }, ), ifs: [], @@ -271,6 +288,7 @@ Module { end: 94, }, id: "ord", + parenthesized: false, }, ), args: [ @@ -281,6 +299,7 @@ Module { end: 96, }, id: "c", + parenthesized: false, }, ), ], @@ -302,6 +321,7 @@ Module { end: 106, }, id: "line", + parenthesized: false, }, ), iter: Name( @@ -311,6 +331,7 @@ Module { end: 114, }, id: "file", + parenthesized: false, }, ), ifs: [], @@ -328,6 +349,7 @@ Module { end: 120, }, id: "c", + parenthesized: false, }, ), iter: Name( @@ -337,6 +359,7 @@ Module { end: 128, }, id: "line", + parenthesized: false, }, ), ifs: [], @@ -367,6 +390,7 @@ Module { end: 133, }, id: "x", + parenthesized: false, }, ), right: Name( @@ -376,6 +400,7 @@ Module { end: 135, }, id: "y", + parenthesized: false, }, ), }, @@ -393,6 +418,7 @@ Module { end: 141, }, id: "x", + parenthesized: false, }, ), iter: Call( @@ -408,6 +434,7 @@ Module { end: 150, }, id: "range", + parenthesized: false, }, ), args: [ @@ -441,6 +468,7 @@ Module { end: 160, }, id: "y", + parenthesized: false, }, ), iter: Call( @@ -456,6 +484,7 @@ Module { end: 169, }, id: "range", + parenthesized: false, }, ), args: [ @@ -495,6 +524,7 @@ Module { end: 178, }, id: "x", + parenthesized: false, }, ), right: Name( @@ -504,6 +534,7 @@ Module { end: 180, }, id: "y", + parenthesized: false, }, ), }, @@ -545,6 +576,7 @@ Module { end: 211, }, id: "has_explicit_annotation", + parenthesized: false, }, ), ], @@ -569,6 +601,7 @@ Module { end: 224, }, id: "isinstance", + parenthesized: false, }, ), args: [ @@ -585,6 +618,7 @@ Module { end: 229, }, id: "fdef", + parenthesized: false, }, ), attr: "type", @@ -597,6 +631,7 @@ Module { end: 248, }, id: "CallableType", + parenthesized: false, }, ), ], @@ -618,6 +653,7 @@ Module { end: 257, }, id: "any", + parenthesized: false, }, ), args: [ @@ -647,6 +683,7 @@ Module { end: 285, }, id: "is_unannotated_any", + parenthesized: false, }, ), args: [ @@ -657,6 +694,7 @@ Module { end: 287, }, id: "t", + parenthesized: false, }, ), ], @@ -680,6 +718,7 @@ Module { end: 294, }, id: "t", + parenthesized: false, }, ), iter: BinOp( @@ -708,6 +747,7 @@ Module { end: 302, }, id: "fdef", + parenthesized: false, }, ), attr: "type", @@ -742,6 +782,7 @@ Module { end: 325, }, id: "fdef", + parenthesized: false, }, ), attr: "type", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap index 2be8c027..971cd659 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap @@ -21,6 +21,7 @@ Module { end: 4, }, id: "a", + parenthesized: false, }, ), body: [ @@ -49,6 +50,7 @@ Module { end: 20, }, id: "a", + parenthesized: false, }, ), body: [ @@ -77,6 +79,7 @@ Module { end: 37, }, id: "a", + parenthesized: false, }, ), body: [ @@ -105,6 +108,7 @@ Module { end: 49, }, id: "a", + parenthesized: false, }, ), body: [ @@ -147,6 +151,7 @@ Module { end: 70, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -160,6 +165,7 @@ Module { end: 75, }, id: "b", + parenthesized: false, }, ), ], @@ -197,6 +203,7 @@ Module { end: 99, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -210,6 +217,7 @@ Module { end: 104, }, id: "b", + parenthesized: false, }, ), ], @@ -245,6 +253,7 @@ Module { end: 133, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -258,6 +267,7 @@ Module { end: 138, }, id: "c", + parenthesized: false, }, ), ], @@ -298,6 +308,7 @@ Module { end: 166, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -311,6 +322,7 @@ Module { end: 171, }, id: "b", + parenthesized: false, }, ), ], @@ -346,6 +358,7 @@ Module { end: 200, }, id: "a", + parenthesized: false, }, ), ops: [ @@ -359,6 +372,7 @@ Module { end: 205, }, id: "c", + parenthesized: false, }, ), ], @@ -402,6 +416,7 @@ Module { end: 261, }, id: "a", + parenthesized: false, }, ), body: [ @@ -419,6 +434,7 @@ Module { end: 268, }, id: "a", + parenthesized: false, }, ), ], @@ -450,6 +466,7 @@ Module { end: 277, }, id: "a", + parenthesized: false, }, ), body: [ @@ -467,6 +484,7 @@ Module { end: 284, }, id: "b", + parenthesized: false, }, ), ], @@ -504,6 +522,7 @@ Module { end: 297, }, id: "self", + parenthesized: false, }, ), attr: "adjust", @@ -540,6 +559,7 @@ Module { end: 332, }, id: "print", + parenthesized: false, }, ), args: [ @@ -575,6 +595,7 @@ Module { end: 417, }, id: "print", + parenthesized: false, }, ), args: [ @@ -613,6 +634,7 @@ Module { end: 451, }, id: "print", + parenthesized: false, }, ), args: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap index fbd5e034..336ba64d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap @@ -44,6 +44,7 @@ Module { end: 11, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap index db0ba84c..95dd4e67 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap @@ -52,6 +52,7 @@ Module { end: 14, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap index 65b5b84a..a28e071f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap @@ -60,6 +60,7 @@ Module { end: 17, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap index fe2ffc23..f328fcdd 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap @@ -53,6 +53,7 @@ Module { end: 15, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap index 5b56b91b..b62d28cb 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap @@ -64,6 +64,7 @@ Module { end: 18, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap index 4bbdaabd..da1edb75 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap @@ -73,6 +73,7 @@ Module { end: 23, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap index ad856666..e76f6a70 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap @@ -54,6 +54,7 @@ Module { end: 14, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap index 650581b3..381a7fd9 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap @@ -61,6 +61,7 @@ Module { end: 14, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap index c24e51ed..e29e7487 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap @@ -35,6 +35,7 @@ Module { end: 9, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap index d90263bc..1cf27e7e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap @@ -23,6 +23,7 @@ Module { end: 3, }, id: "a", + parenthesized: false, }, ), Name( @@ -32,6 +33,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), Name( @@ -41,6 +43,7 @@ Module { end: 9, }, id: "c", + parenthesized: false, }, ), ], @@ -69,6 +72,7 @@ Module { end: 14, }, id: "a", + parenthesized: false, }, ), Name( @@ -78,6 +82,7 @@ Module { end: 17, }, id: "b", + parenthesized: false, }, ), Name( @@ -87,6 +92,7 @@ Module { end: 20, }, id: "c", + parenthesized: false, }, ), ], @@ -118,6 +124,7 @@ Module { end: 27, }, id: "a", + parenthesized: false, }, ), Name( @@ -127,6 +134,7 @@ Module { end: 30, }, id: "b", + parenthesized: false, }, ), Name( @@ -136,6 +144,7 @@ Module { end: 33, }, id: "c", + parenthesized: false, }, ), ], @@ -167,6 +176,7 @@ Module { end: 39, }, id: "a", + parenthesized: false, }, ), Name( @@ -176,6 +186,7 @@ Module { end: 42, }, id: "b", + parenthesized: false, }, ), Name( @@ -185,6 +196,7 @@ Module { end: 49, }, id: "c", + parenthesized: false, }, ), ], @@ -216,6 +228,7 @@ Module { end: 55, }, id: "a", + parenthesized: false, }, ), ], @@ -240,6 +253,7 @@ Module { end: 63, }, id: "a", + parenthesized: false, }, ), Name( @@ -249,6 +263,7 @@ Module { end: 66, }, id: "b", + parenthesized: false, }, ), Name( @@ -258,6 +273,7 @@ Module { end: 69, }, id: "c", + parenthesized: false, }, ), ], @@ -278,6 +294,7 @@ Module { end: 84, }, id: "month_names", + parenthesized: false, }, ), ], @@ -415,6 +432,7 @@ Module { end: 310, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -430,6 +448,7 @@ Module { end: 316, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -439,6 +458,7 @@ Module { end: 321, }, id: "b", + parenthesized: false, }, ), ifs: [], @@ -462,6 +482,7 @@ Module { end: 326, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -477,6 +498,7 @@ Module { end: 332, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -486,6 +508,7 @@ Module { end: 337, }, id: "b", + parenthesized: false, }, ), ifs: [ @@ -496,6 +519,7 @@ Module { end: 342, }, id: "c", + parenthesized: false, }, ), ], @@ -519,6 +543,7 @@ Module { end: 347, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -534,6 +559,7 @@ Module { end: 353, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -543,6 +569,7 @@ Module { end: 358, }, id: "b", + parenthesized: false, }, ), ifs: [ @@ -553,6 +580,7 @@ Module { end: 363, }, id: "c", + parenthesized: false, }, ), Name( @@ -562,6 +590,7 @@ Module { end: 368, }, id: "d", + parenthesized: false, }, ), ], @@ -585,6 +614,7 @@ Module { end: 373, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -600,6 +630,7 @@ Module { end: 379, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -609,6 +640,7 @@ Module { end: 384, }, id: "b", + parenthesized: false, }, ), ifs: [], @@ -626,6 +658,7 @@ Module { end: 390, }, id: "c", + parenthesized: false, }, ), iter: Name( @@ -635,6 +668,7 @@ Module { end: 395, }, id: "d", + parenthesized: false, }, ), ifs: [], @@ -658,6 +692,7 @@ Module { end: 400, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -673,6 +708,7 @@ Module { end: 406, }, id: "a", + parenthesized: false, }, ), iter: Name( @@ -682,6 +718,7 @@ Module { end: 411, }, id: "b", + parenthesized: false, }, ), ifs: [ @@ -692,6 +729,7 @@ Module { end: 416, }, id: "c", + parenthesized: false, }, ), ], @@ -709,6 +747,7 @@ Module { end: 422, }, id: "d", + parenthesized: false, }, ), iter: Name( @@ -718,6 +757,7 @@ Module { end: 427, }, id: "e", + parenthesized: false, }, ), ifs: [], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap index eab6db75..34cb5b14 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap @@ -21,6 +21,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), cases: [ @@ -74,6 +75,7 @@ Module { end: 42, }, id: "a", + parenthesized: false, }, ), cases: [ @@ -154,6 +156,7 @@ Module { end: 81, }, id: "a", + parenthesized: false, }, ), attr: "b", @@ -210,6 +213,7 @@ Module { end: 118, }, id: "a", + parenthesized: false, }, ), cases: [ @@ -435,6 +439,7 @@ Module { end: 291, }, id: "a", + parenthesized: false, }, ), cases: [ @@ -462,6 +467,7 @@ Module { end: 301, }, id: "a", + parenthesized: false, }, ), attr: "b", @@ -526,6 +532,7 @@ Module { end: 353, }, id: "a", + parenthesized: false, }, ), cases: [ @@ -688,6 +695,7 @@ Module { end: 461, }, id: "x", + parenthesized: false, }, ), cases: [ @@ -709,6 +717,7 @@ Module { end: 471, }, id: "Point2D", + parenthesized: false, }, ), patterns: [ @@ -781,6 +790,7 @@ Module { end: 508, }, id: "Point3D", + parenthesized: false, }, ), patterns: [], @@ -872,6 +882,7 @@ Module { end: 554, }, id: "x", + parenthesized: false, }, ), cases: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap index 1a38cde5..753358ba 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap @@ -22,6 +22,7 @@ Module { end: 2, }, id: "a", + parenthesized: false, }, ), value: Name( @@ -31,6 +32,7 @@ Module { end: 7, }, id: "b", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap index a4113fdd..0974a883 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "_", + parenthesized: false, }, ), ], @@ -69,6 +70,7 @@ Module { end: 23, }, id: "_", + parenthesized: false, }, ), ], @@ -116,6 +118,7 @@ Module { end: 45, }, id: "_", + parenthesized: false, }, ), ], @@ -220,6 +223,7 @@ Module { end: 121, }, id: "object", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap index 737a547a..4e2b06ff 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap @@ -21,6 +21,7 @@ Module { end: 8, }, id: "a", + parenthesized: false, }, ), msg: Some( @@ -31,6 +32,7 @@ Module { end: 11, }, id: "b", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap index 65dcc720..e3a027f4 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap @@ -21,6 +21,7 @@ Module { end: 8, }, id: "a", + parenthesized: false, }, ), msg: None, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap index e2e748e8..c1c8081f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap index 2935262a..e4c9d60f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap index 13b562db..c416fee0 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap index ede78fe9..3c9e9d97 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap index 2874d199..92eba599 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap index be694ebb..b637c842 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), Name( @@ -31,6 +32,7 @@ Module { end: 5, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap index b0be3284..c8c11320 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap @@ -29,6 +29,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), Name( @@ -38,6 +39,7 @@ Module { end: 3, }, id: "b", + parenthesized: false, }, ), ], @@ -57,6 +59,7 @@ Module { end: 7, }, id: "c", + parenthesized: false, }, ), Name( @@ -66,6 +69,7 @@ Module { end: 9, }, id: "d", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap index 2efd99ef..7efbbf14 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: Add, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap index 94e52649..7fa31141 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: Sub, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap index 0e565773..45a22197 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: Mult, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap index e25e4e2f..36e5fd2c 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap index 26ad4485..cc78289d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: Div, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap index 946f244b..4b93abe1 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: FloorDiv, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap index efb53fdd..6396d070 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: Mod, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap index 22b2041a..3d43347b 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: Pow, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap index 5f70e01e..6ad27fb3 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: LShift, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap index 8b1d5fc7..a185dd68 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: RShift, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap index 89c83b46..d2a418bf 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: BitAnd, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap index 1777d02d..36bb17ef 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: BitXor, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap index ebf7e5ee..29f91a14 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap @@ -21,6 +21,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), op: BitOr, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap index d25545c5..6eba900a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap index 750ca5ac..1a29f305 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap index 95d67437..87d1996c 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap index 9ed5300b..494c8aa4 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap index 6cd86208..8aae3995 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap index ba21e648..a766c982 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap index 55ef1f23..e47eb5cc 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap index 8b9522d8..fd85ca41 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap index a0d94b6a..53dc06b9 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap @@ -24,6 +24,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), Name( @@ -33,6 +34,7 @@ Module { end: 7, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap index e4712015..60f969f1 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap @@ -24,6 +24,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), BoolOp( @@ -41,6 +42,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), Name( @@ -50,6 +52,7 @@ Module { end: 11, }, id: "c", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap index 633354fc..21fabc0f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap @@ -32,6 +32,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), Name( @@ -41,6 +42,7 @@ Module { end: 7, }, id: "b", + parenthesized: false, }, ), ], @@ -53,6 +55,7 @@ Module { end: 12, }, id: "c", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap index facbd4d7..118cff4b 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap @@ -24,6 +24,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), Name( @@ -33,6 +34,7 @@ Module { end: 6, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-2.snap index 15099e51..3f8f2f0e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-2.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), args: [ @@ -32,6 +33,7 @@ Module { end: 3, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-3.snap index 2c2e50ea..be96375f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-3.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), args: [ @@ -32,6 +33,7 @@ Module { end: 3, }, id: "b", + parenthesized: false, }, ), Name( @@ -41,6 +43,7 @@ Module { end: 6, }, id: "c", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-4.snap index a8a9004d..6f86ebc9 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-4.snap @@ -22,6 +22,7 @@ Module { end: 4, }, id: "func", + parenthesized: false, }, ), args: [], @@ -41,6 +42,7 @@ Module { end: 8, }, id: "c", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-5.snap index be0c6d79..bae56958 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-5.snap @@ -22,6 +22,7 @@ Module { end: 4, }, id: "func", + parenthesized: false, }, ), args: [ @@ -32,6 +33,7 @@ Module { end: 6, }, id: "a", + parenthesized: false, }, ), ], @@ -51,6 +53,7 @@ Module { end: 11, }, id: "c", + parenthesized: false, }, ), }, @@ -69,6 +72,7 @@ Module { end: 16, }, id: "e", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-6.snap index 35c142e8..d1ea9aa6 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-6.snap @@ -22,6 +22,7 @@ Module { end: 4, }, id: "func", + parenthesized: false, }, ), args: [ @@ -32,6 +33,7 @@ Module { end: 6, }, id: "a", + parenthesized: false, }, ), Starred( @@ -47,6 +49,7 @@ Module { end: 20, }, id: "f", + parenthesized: false, }, ), }, @@ -68,6 +71,7 @@ Module { end: 11, }, id: "c", + parenthesized: false, }, ), }, @@ -86,6 +90,7 @@ Module { end: 16, }, id: "e", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-7.snap index 3d96315f..19d7377c 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-7.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-7.snap @@ -22,6 +22,7 @@ Module { end: 4, }, id: "func", + parenthesized: false, }, ), args: [ @@ -32,6 +33,7 @@ Module { end: 6, }, id: "a", + parenthesized: false, }, ), Starred( @@ -47,6 +49,7 @@ Module { end: 20, }, id: "f", + parenthesized: false, }, ), }, @@ -68,6 +71,7 @@ Module { end: 11, }, id: "c", + parenthesized: false, }, ), }, @@ -86,6 +90,7 @@ Module { end: 16, }, id: "e", + parenthesized: false, }, ), }, @@ -102,6 +107,7 @@ Module { end: 25, }, id: "g", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-8.snap index 996a23aa..a4b4134a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-8.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-8.snap @@ -22,6 +22,7 @@ Module { end: 4, }, id: "func", + parenthesized: false, }, ), args: [ @@ -32,6 +33,7 @@ Module { end: 6, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap index 4fb2a5ea..879d02ed 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "a", + parenthesized: false, }, ), args: [], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap index 041a3c00..e0fddebb 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap @@ -22,6 +22,7 @@ Module { end: 5, }, id: "a", + parenthesized: false, }, ), Name( @@ -31,6 +32,7 @@ Module { end: 8, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap index 170c1665..5680120d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap @@ -22,6 +22,7 @@ Module { end: 5, }, id: "a", + parenthesized: false, }, ), Name( @@ -31,6 +32,7 @@ Module { end: 8, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap index 5c1a0e30..6eada50c 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap @@ -22,6 +22,7 @@ Module { end: 5, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap index b22094b0..2436253d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap @@ -23,6 +23,7 @@ Module { end: 3, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap index 25a998b9..2d401c66 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap @@ -23,6 +23,7 @@ Module { end: 3, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap index 54e7e4cd..3b753971 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap @@ -23,6 +23,7 @@ Module { end: 2, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap index bcc7175b..1a76af0e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap @@ -23,6 +23,7 @@ Module { end: 5, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap index 93116500..3d71fa16 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap @@ -23,6 +23,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap index 4054102e..98746da1 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap @@ -30,6 +30,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), Name( @@ -39,6 +40,7 @@ Module { end: 10, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap index d78f0030..bdc7f04a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap @@ -30,6 +30,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), Name( @@ -39,6 +40,7 @@ Module { end: 10, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap index cd63812d..27ab911a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap @@ -22,6 +22,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap index e7d12733..81208189 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap @@ -22,6 +22,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), ), @@ -33,6 +34,7 @@ Module { end: 14, }, id: "c", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap index 8eb1c99e..20f6a3d9 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap @@ -43,6 +43,7 @@ Module { end: 115, }, id: "x", + parenthesized: false, }, ), ], @@ -71,6 +72,7 @@ Module { end: 122, }, id: "y", + parenthesized: false, }, ), ], @@ -106,6 +108,7 @@ Module { end: 139, }, id: "x", + parenthesized: false, }, ), right: Name( @@ -115,6 +118,7 @@ Module { end: 143, }, id: "y", + parenthesized: false, }, ), }, @@ -171,6 +175,7 @@ Module { end: 234, }, id: "x", + parenthesized: false, }, ), right: Name( @@ -180,6 +185,7 @@ Module { end: 238, }, id: "y", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap index 4b28f724..1f40d20a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap @@ -23,6 +23,7 @@ Module { end: 2, }, id: "a", + parenthesized: false, }, ), Name( @@ -32,6 +33,7 @@ Module { end: 5, }, id: "b", + parenthesized: false, }, ), Name( @@ -41,6 +43,7 @@ Module { end: 8, }, id: "c", + parenthesized: false, }, ), ], @@ -62,6 +65,7 @@ Module { end: 13, }, id: "a", + parenthesized: false, }, ), Name( @@ -71,6 +75,7 @@ Module { end: 16, }, id: "b", + parenthesized: false, }, ), Name( @@ -80,6 +85,7 @@ Module { end: 19, }, id: "c", + parenthesized: false, }, ), ], @@ -101,6 +107,7 @@ Module { end: 25, }, id: "a", + parenthesized: false, }, ), Name( @@ -110,6 +117,7 @@ Module { end: 28, }, id: "b", + parenthesized: false, }, ), Name( @@ -119,6 +127,7 @@ Module { end: 31, }, id: "c", + parenthesized: false, }, ), ], @@ -140,6 +149,7 @@ Module { end: 36, }, id: "a", + parenthesized: false, }, ), Name( @@ -149,6 +159,7 @@ Module { end: 39, }, id: "b", + parenthesized: false, }, ), Name( @@ -158,6 +169,7 @@ Module { end: 46, }, id: "c", + parenthesized: false, }, ), ], @@ -179,6 +191,7 @@ Module { end: 51, }, id: "a", + parenthesized: false, }, ), ], @@ -200,6 +213,7 @@ Module { end: 58, }, id: "a", + parenthesized: false, }, ), Name( @@ -209,6 +223,7 @@ Module { end: 61, }, id: "b", + parenthesized: false, }, ), Name( @@ -218,6 +233,7 @@ Module { end: 64, }, id: "c", + parenthesized: false, }, ), ], @@ -238,6 +254,7 @@ Module { end: 70, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -253,6 +270,7 @@ Module { end: 76, }, id: "a", + parenthesized: false, }, ), iter: Call( @@ -268,6 +286,7 @@ Module { end: 85, }, id: "range", + parenthesized: false, }, ), args: [ @@ -307,6 +326,7 @@ Module { end: 94, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -322,6 +342,7 @@ Module { end: 100, }, id: "a", + parenthesized: false, }, ), iter: Call( @@ -337,6 +358,7 @@ Module { end: 109, }, id: "range", + parenthesized: false, }, ), args: [ @@ -376,6 +398,7 @@ Module { end: 119, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -391,6 +414,7 @@ Module { end: 125, }, id: "a", + parenthesized: false, }, ), iter: Call( @@ -406,6 +430,7 @@ Module { end: 134, }, id: "range", + parenthesized: false, }, ), args: [ @@ -445,6 +470,7 @@ Module { end: 143, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -460,6 +486,7 @@ Module { end: 149, }, id: "a", + parenthesized: false, }, ), iter: Call( @@ -475,6 +502,7 @@ Module { end: 158, }, id: "range", + parenthesized: false, }, ), args: [ @@ -514,6 +542,7 @@ Module { end: 167, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -529,6 +558,7 @@ Module { end: 173, }, id: "a", + parenthesized: false, }, ), iter: Call( @@ -544,6 +574,7 @@ Module { end: 182, }, id: "range", + parenthesized: false, }, ), args: [ @@ -577,6 +608,7 @@ Module { end: 192, }, id: "b", + parenthesized: false, }, ), iter: Call( @@ -592,6 +624,7 @@ Module { end: 201, }, id: "range", + parenthesized: false, }, ), args: [ @@ -631,6 +664,7 @@ Module { end: 210, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -646,6 +680,7 @@ Module { end: 216, }, id: "a", + parenthesized: false, }, ), iter: Call( @@ -661,6 +696,7 @@ Module { end: 225, }, id: "range", + parenthesized: false, }, ), args: [ @@ -694,6 +730,7 @@ Module { end: 235, }, id: "b", + parenthesized: false, }, ), iter: Call( @@ -709,6 +746,7 @@ Module { end: 244, }, id: "range", + parenthesized: false, }, ), args: [ @@ -748,6 +786,7 @@ Module { end: 254, }, id: "a", + parenthesized: false, }, ), generators: [ @@ -763,6 +802,7 @@ Module { end: 260, }, id: "a", + parenthesized: false, }, ), iter: Call( @@ -778,6 +818,7 @@ Module { end: 269, }, id: "range", + parenthesized: false, }, ), args: [ @@ -811,6 +852,7 @@ Module { end: 279, }, id: "b", + parenthesized: false, }, ), iter: Call( @@ -826,6 +868,7 @@ Module { end: 288, }, id: "range", + parenthesized: false, }, ), args: [ @@ -872,6 +915,7 @@ Module { end: 304, }, id: "a", + parenthesized: false, }, ), Name( @@ -881,6 +925,7 @@ Module { end: 306, }, id: "b", + parenthesized: false, }, ), ], @@ -899,6 +944,7 @@ Module { end: 313, }, id: "a", + parenthesized: false, }, ), iter: Call( @@ -914,6 +960,7 @@ Module { end: 322, }, id: "range", + parenthesized: false, }, ), args: [ @@ -947,6 +994,7 @@ Module { end: 332, }, id: "b", + parenthesized: false, }, ), iter: Call( @@ -962,6 +1010,7 @@ Module { end: 341, }, id: "range", + parenthesized: false, }, ), args: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap index 7ef46167..5d18d25a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap @@ -22,6 +22,7 @@ Module { end: 3, }, id: "a", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap index 8a21b3c3..8edda2ac 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap @@ -22,6 +22,7 @@ Module { end: 1, }, id: "x", + parenthesized: false, }, ), ], @@ -50,6 +51,7 @@ Module { end: 24, }, id: "raw", + parenthesized: false, }, ), ], @@ -78,6 +80,7 @@ Module { end: 43, }, id: "y", + parenthesized: false, }, ), ], @@ -125,6 +128,7 @@ Module { end: 136, }, id: "self", + parenthesized: false, }, ), attr: "__class__", @@ -171,6 +175,7 @@ Module { end: 162, }, id: "self", + parenthesized: false, }, ), attr: "_display", @@ -220,6 +225,7 @@ Module { end: 186, }, id: "num", + parenthesized: false, }, ), conversion: -1, @@ -259,6 +265,7 @@ Module { end: 197, }, id: "unit", + parenthesized: false, }, ), conversion: -1, @@ -305,6 +312,7 @@ Module { end: 280, }, id: "name", + parenthesized: false, }, ), slice: Slice( diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap index ad4fef0d..5e4ee8d5 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap @@ -22,6 +22,7 @@ Module { end: 7, }, id: "indices", + parenthesized: false, }, ), ], @@ -38,6 +39,7 @@ Module { end: 27, }, id: "list_of_key_stats", + parenthesized: false, }, ), slice: Slice( @@ -89,6 +91,7 @@ Module { end: 41, }, id: "values", + parenthesized: false, }, ), ], @@ -105,6 +108,7 @@ Module { end: 61, }, id: "list_of_key_stats", + parenthesized: false, }, ), slice: Slice( @@ -156,6 +160,7 @@ Module { end: 70, }, id: "a", + parenthesized: false, }, ), slice: Name( @@ -165,6 +170,7 @@ Module { end: 72, }, id: "b", + parenthesized: false, }, ), }, @@ -184,6 +190,7 @@ Module { end: 76, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -214,6 +221,7 @@ Module { end: 82, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -231,6 +239,7 @@ Module { end: 89, }, id: "step", + parenthesized: false, }, ), ), @@ -254,6 +263,7 @@ Module { end: 92, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -271,6 +281,7 @@ Module { end: 99, }, id: "step", + parenthesized: false, }, ), ), @@ -294,6 +305,7 @@ Module { end: 104, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -312,6 +324,7 @@ Module { end: 111, }, id: "upper", + parenthesized: false, }, ), ), @@ -334,6 +347,7 @@ Module { end: 114, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -374,6 +388,7 @@ Module { end: 120, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -391,6 +406,7 @@ Module { end: 127, }, id: "upper", + parenthesized: false, }, ), ), @@ -414,6 +430,7 @@ Module { end: 131, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -431,6 +448,7 @@ Module { end: 138, }, id: "upper", + parenthesized: false, }, ), ), @@ -442,6 +460,7 @@ Module { end: 143, }, id: "step", + parenthesized: false, }, ), ), @@ -464,6 +483,7 @@ Module { end: 147, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -480,6 +500,7 @@ Module { end: 153, }, id: "lower", + parenthesized: false, }, ), ), @@ -504,6 +525,7 @@ Module { end: 157, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -520,6 +542,7 @@ Module { end: 163, }, id: "lower", + parenthesized: false, }, ), ), @@ -531,6 +554,7 @@ Module { end: 169, }, id: "upper", + parenthesized: false, }, ), ), @@ -554,6 +578,7 @@ Module { end: 172, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -570,6 +595,7 @@ Module { end: 178, }, id: "lower", + parenthesized: false, }, ), ), @@ -582,6 +608,7 @@ Module { end: 184, }, id: "upper", + parenthesized: false, }, ), ), @@ -604,6 +631,7 @@ Module { end: 188, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -620,6 +648,7 @@ Module { end: 194, }, id: "lower", + parenthesized: false, }, ), ), @@ -631,6 +660,7 @@ Module { end: 200, }, id: "upper", + parenthesized: false, }, ), ), @@ -642,6 +672,7 @@ Module { end: 205, }, id: "step", + parenthesized: false, }, ), ), @@ -664,6 +695,7 @@ Module { end: 208, }, id: "a", + parenthesized: false, }, ), slice: Slice( @@ -680,6 +712,7 @@ Module { end: 214, }, id: "lower", + parenthesized: false, }, ), ), @@ -704,6 +737,7 @@ Module { end: 221, }, id: "a", + parenthesized: false, }, ), slice: Tuple( @@ -720,6 +754,7 @@ Module { end: 223, }, id: "b", + parenthesized: false, }, ), Name( @@ -729,6 +764,7 @@ Module { end: 226, }, id: "c", + parenthesized: false, }, ), Name( @@ -738,6 +774,7 @@ Module { end: 229, }, id: "d", + parenthesized: false, }, ), ], @@ -760,6 +797,7 @@ Module { end: 233, }, id: "a", + parenthesized: false, }, ), slice: Tuple( @@ -776,6 +814,7 @@ Module { end: 235, }, id: "b", + parenthesized: false, }, ), Slice( @@ -792,6 +831,7 @@ Module { end: 238, }, id: "c", + parenthesized: false, }, ), ), @@ -803,6 +843,7 @@ Module { end: 240, }, id: "d", + parenthesized: false, }, ), ), @@ -816,6 +857,7 @@ Module { end: 243, }, id: "e", + parenthesized: false, }, ), ], @@ -838,6 +880,7 @@ Module { end: 248, }, id: "a", + parenthesized: false, }, ), slice: Tuple( @@ -854,6 +897,7 @@ Module { end: 250, }, id: "b", + parenthesized: false, }, ), Slice( @@ -870,6 +914,7 @@ Module { end: 253, }, id: "c", + parenthesized: false, }, ), ), @@ -881,6 +926,7 @@ Module { end: 255, }, id: "d", + parenthesized: false, }, ), ), @@ -892,6 +938,7 @@ Module { end: 257, }, id: "e", + parenthesized: false, }, ), ), @@ -904,6 +951,7 @@ Module { end: 260, }, id: "f", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap index eb20940c..360954be 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap @@ -29,6 +29,7 @@ Module { end: 72, }, id: "last_price", + parenthesized: false, }, ), ], @@ -45,6 +46,7 @@ Module { end: 78, }, id: "int", + parenthesized: false, }, ), args: [ @@ -61,6 +63,7 @@ Module { end: 92, }, id: "price_section", + parenthesized: false, }, ), slice: Constant( @@ -104,6 +107,7 @@ Module { end: 153, }, id: "ValueError", + parenthesized: false, }, ), Name( @@ -113,6 +117,7 @@ Module { end: 165, }, id: "IndexError", + parenthesized: false, }, ), ], @@ -135,6 +140,7 @@ Module { end: 182, }, id: "last_price", + parenthesized: false, }, ), ], @@ -177,6 +183,7 @@ Module { end: 208, }, id: "adj_close", + parenthesized: false, }, ), ], @@ -193,6 +200,7 @@ Module { end: 214, }, id: "int", + parenthesized: false, }, ), args: [ @@ -209,6 +217,7 @@ Module { end: 228, }, id: "price_section", + parenthesized: false, }, ), slice: Constant( @@ -252,6 +261,7 @@ Module { end: 251, }, id: "ValueError", + parenthesized: false, }, ), Name( @@ -261,6 +271,7 @@ Module { end: 263, }, id: "IndexError", + parenthesized: false, }, ), ], @@ -283,6 +294,7 @@ Module { end: 279, }, id: "adj_close", + parenthesized: false, }, ), ], @@ -325,6 +337,7 @@ Module { end: 306, }, id: "market_cap", + parenthesized: false, }, ), ], @@ -342,6 +355,7 @@ Module { end: 318, }, id: "adj_close", + parenthesized: false, }, ), right: Attribute( @@ -357,6 +371,7 @@ Module { end: 325, }, id: "self", + parenthesized: false, }, ), attr: "total_shares", @@ -381,6 +396,7 @@ Module { end: 356, }, id: "ValueError", + parenthesized: false, }, ), ), @@ -400,6 +416,7 @@ Module { end: 372, }, id: "market_cap", + parenthesized: false, }, ), ], @@ -459,6 +476,7 @@ Module { end: 409, }, id: "session", + parenthesized: false, }, ), attr: "get", @@ -472,6 +490,7 @@ Module { end: 426, }, id: "url", + parenthesized: false, }, ), ], @@ -491,6 +510,7 @@ Module { end: 456, }, id: "TRADE_DETAILS_HEADER", + parenthesized: false, }, ), }, @@ -525,6 +545,7 @@ Module { end: 487, }, id: "response", + parenthesized: false, }, ), ), @@ -556,6 +577,7 @@ Module { end: 508, }, id: "response", + parenthesized: false, }, ), attr: "status", @@ -598,6 +620,7 @@ Module { end: 542, }, id: "logger", + parenthesized: false, }, ), attr: "info", @@ -633,6 +656,7 @@ Module { end: 612, }, id: "date_obj", + parenthesized: false, }, ), conversion: -1, @@ -671,6 +695,7 @@ Module { end: 665, }, id: "retry_count", + parenthesized: false, }, ), op: Add, @@ -711,6 +736,7 @@ Module { end: 696, }, id: "asyncio", + parenthesized: false, }, ), attr: "sleep", @@ -757,6 +783,7 @@ Module { end: 740, }, id: "response", + parenthesized: false, }, ), attr: "raise_for_status", @@ -783,6 +810,7 @@ Module { end: 776, }, id: "data", + parenthesized: false, }, ), ], @@ -811,6 +839,7 @@ Module { end: 793, }, id: "response", + parenthesized: false, }, ), attr: "json", @@ -846,6 +875,7 @@ Module { end: 819, }, id: "logger", + parenthesized: false, }, ), attr: "info", @@ -881,6 +911,7 @@ Module { end: 891, }, id: "date_obj", + parenthesized: false, }, ), conversion: -1, @@ -927,6 +958,7 @@ Module { end: 945, }, id: "date_obj", + parenthesized: false, }, ), Call( @@ -948,6 +980,7 @@ Module { end: 949, }, id: "pd", + parenthesized: false, }, ), attr: "json_normalize", @@ -967,6 +1000,7 @@ Module { end: 969, }, id: "data", + parenthesized: false, }, ), slice: Constant( @@ -1026,6 +1060,7 @@ Module { end: 1003, }, id: "aiohttp", + parenthesized: false, }, ), attr: "ClientError", @@ -1044,6 +1079,7 @@ Module { end: 1024, }, id: "asyncio", + parenthesized: false, }, ), attr: "TimeoutError", @@ -1075,6 +1111,7 @@ Module { end: 1050, }, id: "logger", + parenthesized: false, }, ), attr: "error", @@ -1110,6 +1147,7 @@ Module { end: 1087, }, id: "date_obj", + parenthesized: false, }, ), conversion: -1, @@ -1148,6 +1186,7 @@ Module { end: 1119, }, id: "retry_count", + parenthesized: false, }, ), op: Add, @@ -1188,6 +1227,7 @@ Module { end: 1142, }, id: "asyncio", + parenthesized: false, }, ), attr: "sleep", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-2.snap index 4e008558..22d41fec 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-2.snap @@ -38,6 +38,7 @@ Module { end: 42, }, id: "Exception", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-3.snap index 9d9da75e..10b71b2a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-3.snap @@ -38,6 +38,7 @@ Module { end: 42, }, id: "Exception", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-4.snap index 4b6577a6..05325785 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-4.snap @@ -38,6 +38,7 @@ Module { end: 42, }, id: "Exception", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-5.snap index bcba8eff..0ff87bd9 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-5.snap @@ -38,6 +38,7 @@ Module { end: 42, }, id: "Exception", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-6.snap index 6916f93f..1865d6ef 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-6.snap @@ -38,6 +38,7 @@ Module { end: 31, }, id: "Exception", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap index a041e53a..2fca4fad 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap @@ -23,6 +23,7 @@ Module { end: 2, }, id: "a", + parenthesized: false, }, ), Name( @@ -32,6 +33,7 @@ Module { end: 17, }, id: "b", + parenthesized: false, }, ), Name( @@ -41,6 +43,7 @@ Module { end: 20, }, id: "c", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap index 59abf839..725dc185 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap @@ -23,6 +23,7 @@ Module { end: 3, }, id: "a", + parenthesized: false, }, ), Name( @@ -32,6 +33,7 @@ Module { end: 18, }, id: "b", + parenthesized: false, }, ), Name( @@ -41,6 +43,7 @@ Module { end: 21, }, id: "c", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap index 913facc6..9ca202dd 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap @@ -23,6 +23,7 @@ Module { end: 2, }, id: "a", + parenthesized: false, }, ), Name( @@ -32,6 +33,7 @@ Module { end: 17, }, id: "b", + parenthesized: false, }, ), Name( @@ -41,6 +43,7 @@ Module { end: 36, }, id: "c", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap index 657cabbf..7054bcd8 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap @@ -16,6 +16,7 @@ Module { end: 2, }, id: "a", + parenthesized: true, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap index cdd04c88..b031cc33 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap @@ -23,6 +23,7 @@ Module { end: 2, }, id: "a", + parenthesized: false, }, ), Name( @@ -32,6 +33,7 @@ Module { end: 5, }, id: "b", + parenthesized: false, }, ), Name( @@ -41,6 +43,7 @@ Module { end: 8, }, id: "c", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap index 20dfed35..592151f8 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap @@ -23,6 +23,7 @@ Module { end: 2, }, id: "a", + parenthesized: false, }, ), Name( @@ -32,6 +33,7 @@ Module { end: 5, }, id: "b", + parenthesized: false, }, ), Name( @@ -41,6 +43,7 @@ Module { end: 8, }, id: "c", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__types_alias.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__types_alias.snap index d2c28637..9662dda9 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__types_alias.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__types_alias.snap @@ -23,6 +23,7 @@ Module { end: 17, }, id: "int", + parenthesized: false, }, ), }, @@ -42,6 +43,7 @@ Module { end: 35, }, id: "str", + parenthesized: false, }, ), }, @@ -61,6 +63,7 @@ Module { end: 55, }, id: "float", + parenthesized: false, }, ), }, @@ -80,6 +83,7 @@ Module { end: 90, }, id: "Alias1", + parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-2.snap index 82124e7d..a35a2d71 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-2.snap @@ -21,6 +21,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), body: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-3.snap index f7d681d0..a2d49dcf 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-3.snap @@ -21,6 +21,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), body: [ @@ -38,6 +39,7 @@ Module { end: 18, }, id: "a", + parenthesized: false, }, ), ], @@ -68,6 +70,7 @@ Module { end: 38, }, id: "b", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap index cbbfc2ea..758a8569 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap @@ -21,6 +21,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), body: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap index 7c196c4c..7939042a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap @@ -27,6 +27,7 @@ Module { end: 6, }, id: "a", + parenthesized: false, }, ), optional_vars: None, @@ -63,6 +64,7 @@ Module { end: 20, }, id: "a", + parenthesized: false, }, ), optional_vars: Some( @@ -73,6 +75,7 @@ Module { end: 25, }, id: "b", + parenthesized: false, }, ), ), @@ -109,6 +112,7 @@ Module { end: 39, }, id: "a", + parenthesized: false, }, ), optional_vars: Some( @@ -119,6 +123,7 @@ Module { end: 44, }, id: "b", + parenthesized: false, }, ), ), @@ -135,6 +140,7 @@ Module { end: 47, }, id: "c", + parenthesized: false, }, ), optional_vars: Some( @@ -145,6 +151,7 @@ Module { end: 52, }, id: "d", + parenthesized: false, }, ), ), @@ -181,6 +188,7 @@ Module { end: 67, }, id: "a", + parenthesized: false, }, ), optional_vars: Some( @@ -191,6 +199,7 @@ Module { end: 72, }, id: "b", + parenthesized: false, }, ), ), @@ -207,6 +216,7 @@ Module { end: 75, }, id: "c", + parenthesized: false, }, ), optional_vars: Some( @@ -217,6 +227,7 @@ Module { end: 80, }, id: "d", + parenthesized: false, }, ), ), @@ -253,6 +264,7 @@ Module { end: 101, }, id: "a", + parenthesized: false, }, ), optional_vars: Some( @@ -263,6 +275,7 @@ Module { end: 106, }, id: "b", + parenthesized: false, }, ), ), @@ -299,6 +312,7 @@ Module { end: 126, }, id: "a", + parenthesized: false, }, ), optional_vars: Some( @@ -309,6 +323,7 @@ Module { end: 131, }, id: "b", + parenthesized: false, }, ), ), @@ -325,6 +340,7 @@ Module { end: 134, }, id: "c", + parenthesized: false, }, ), optional_vars: Some( @@ -335,6 +351,7 @@ Module { end: 139, }, id: "d", + parenthesized: false, }, ), ), @@ -371,6 +388,7 @@ Module { end: 173, }, id: "a", + parenthesized: false, }, ), optional_vars: Some( @@ -381,6 +399,7 @@ Module { end: 178, }, id: "b", + parenthesized: false, }, ), ), @@ -397,6 +416,7 @@ Module { end: 181, }, id: "c", + parenthesized: false, }, ), optional_vars: Some( @@ -407,6 +427,7 @@ Module { end: 187, }, id: "d", + parenthesized: false, }, ), ), @@ -427,6 +448,7 @@ Module { end: 195, }, id: "a", + parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap index 93116500..3d71fa16 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap @@ -23,6 +23,7 @@ Module { end: 7, }, id: "a", + parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap index 5b150981..5a228006 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap @@ -22,6 +22,7 @@ Module { end: 12, }, id: "a", + parenthesized: false, }, ), }, From 0b101c815de4ca2af1a089fcceb0486808b4c912 Mon Sep 17 00:00:00 2001 From: Daniel Woznicki Date: Tue, 25 Jun 2024 21:16:37 -0700 Subject: [PATCH 3/5] Added tests for new parenthesized name expression. --- .../test_data/inputs/annotated_assignment.py | 5 ++ ...er_and_errors@annotated_assignment.py.snap | 21 ++++- ...__parser__tests__annotated_assignment.snap | 84 ++++++++++++++++++- 3 files changed, 107 insertions(+), 3 deletions(-) diff --git a/parser/test_data/inputs/annotated_assignment.py b/parser/test_data/inputs/annotated_assignment.py index 860f3ca7..38165994 100644 --- a/parser/test_data/inputs/annotated_assignment.py +++ b/parser/test_data/inputs/annotated_assignment.py @@ -13,3 +13,8 @@ g: tuple[int, int] = 1, 2 +(h): int = 1 + +( + i +): int = 1 diff --git a/parser/test_data/output/enderpy_python_parser__lexer__tests__snapshot_test_lexer_and_errors@annotated_assignment.py.snap b/parser/test_data/output/enderpy_python_parser__lexer__tests__snapshot_test_lexer_and_errors@annotated_assignment.py.snap index f7349b45..bd890150 100644 --- a/parser/test_data/output/enderpy_python_parser__lexer__tests__snapshot_test_lexer_and_errors@annotated_assignment.py.snap +++ b/parser/test_data/output/enderpy_python_parser__lexer__tests__snapshot_test_lexer_and_errors@annotated_assignment.py.snap @@ -1,6 +1,6 @@ --- source: parser/src/lexer/mod.rs -description: "a: int = 1\n\nb: tuple[int, int] = 1, 2\n\nc: tuple[str, int] = \"1\", 2, \n\nd: tuple[int, int] = b\n\ne: tuple[int, int]\n\nf: tuple[int, int] = e\n\ng: tuple[int,\n int] = 1, 2\n\n" +description: "a: int = 1\n\nb: tuple[int, int] = 1, 2\n\nc: tuple[str, int] = \"1\", 2, \n\nd: tuple[int, int] = b\n\ne: tuple[int, int]\n\nf: tuple[int, int] = e\n\ng: tuple[int,\n int] = 1, 2\n\n(h): int = 1\n\n(\n i\n): int = 1\n" input_file: parser/test_data/inputs/annotated_assignment.py --- 0,1: Identifier (Str("a")) @@ -88,3 +88,22 @@ input_file: parser/test_data/inputs/annotated_assignment.py 171,172: Integer (Number("2")) 172,173: NewLine (None) 173,174: NewLine (None) +174,175: ( (None) +175,176: Identifier (Str("h")) +176,177: ) (None) +177,178: : (None) +179,182: Identifier (Str("int")) +183,184: = (None) +185,186: Integer (Number("1")) +186,187: NewLine (None) +187,188: NewLine (None) +188,189: ( (None) +189,190: NewLine (None) +194,195: Identifier (Str("i")) +195,196: NewLine (None) +196,197: ) (None) +197,198: : (None) +199,202: Identifier (Str("int")) +203,204: = (None) +205,206: Integer (Number("1")) +206,207: NewLine (None) diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap index d0569108..7a447d57 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap @@ -1,11 +1,11 @@ --- source: parser/src/parser/parser.rs -description: "a: int = 1\n\nb: tuple[int, int] = 1, 2\n\nc: tuple[str, int] = \"1\", 2, \n\nd: tuple[int, int] = b\n\ne: tuple[int, int]\n\nf: tuple[int, int] = e\n\ng: tuple[int,\n int] = 1, 2\n\n" +description: "a: int = 1\n\nb: tuple[int, int] = 1, 2\n\nc: tuple[str, int] = \"1\", 2, \n\nd: tuple[int, int] = b\n\ne: tuple[int, int]\n\nf: tuple[int, int] = e\n\ng: tuple[int,\n int] = 1, 2\n\n(h): int = 1\n\n(\n i\n): int = 1\n" --- Module { node: Node { start: 0, - end: 174, + end: 207, }, body: [ AnnAssignStatement( @@ -565,5 +565,85 @@ Module { simple: true, }, ), + AnnAssignStatement( + AnnAssign { + node: Node { + start: 174, + end: 186, + }, + target: Name( + Name { + node: Node { + start: 175, + end: 176, + }, + id: "h", + parenthesized: true, + }, + ), + annotation: Name( + Name { + node: Node { + start: 179, + end: 182, + }, + id: "int", + parenthesized: false, + }, + ), + value: Some( + Constant( + Constant { + node: Node { + start: 185, + end: 186, + }, + value: 1, + }, + ), + ), + simple: false, + }, + ), + AnnAssignStatement( + AnnAssign { + node: Node { + start: 188, + end: 206, + }, + target: Name( + Name { + node: Node { + start: 194, + end: 196, + }, + id: "i", + parenthesized: true, + }, + ), + annotation: Name( + Name { + node: Node { + start: 199, + end: 202, + }, + id: "int", + parenthesized: false, + }, + ), + value: Some( + Constant( + Constant { + node: Node { + start: 205, + end: 206, + }, + value: 1, + }, + ), + ), + simple: false, + }, + ), ], } From ba76d391f9b0ea81f5af399fe146d1fe4985135c Mon Sep 17 00:00:00 2001 From: Daniel Woznicki Date: Tue, 25 Jun 2024 21:19:59 -0700 Subject: [PATCH 4/5] Fixed a couple more failing tests. --- .../enderpy_python_parser__parser__parser__tests__for.snap | 1 + .../enderpy_python_parser__parser__parser__tests__string.snap | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap index 1dbee87d..c1087872 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap @@ -413,6 +413,7 @@ Module { end: 194, }, id: "a", + parenthesized: false, }, ), iter: List( diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap index f969d7a7..a71281d2 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap @@ -383,6 +383,7 @@ Module { end: 177, }, id: "a", + parenthesized: false, }, ), right: Name( @@ -392,6 +393,7 @@ Module { end: 179, }, id: "b", + parenthesized: false, }, ), }, @@ -449,6 +451,7 @@ Module { end: 198, }, id: "c", + parenthesized: false, }, ), right: Name( @@ -458,6 +461,7 @@ Module { end: 200, }, id: "d", + parenthesized: false, }, ), }, From 398c5738f64e3a0ea8c7b262ab7621f03c3e57c2 Mon Sep 17 00:00:00 2001 From: Daniel Woznicki Date: Wed, 26 Jun 2024 23:00:23 -0700 Subject: [PATCH 5/5] Set parenthesized field to hidden. It's kind of a pseudo-attribute anyway. --- parser/src/parser/ast.rs | 11 ++++- ...__parser__tests__annotated_assignment.snap | 32 ------------ ...arser__parser__tests__attribute_ref-2.snap | 1 - ...arser__parser__tests__attribute_ref-3.snap | 1 - ...arser__parser__tests__attribute_ref-4.snap | 1 - ..._parser__parser__tests__attribute_ref.snap | 1 - ...rser__parser__tests__await_expression.snap | 1 - ..._parser__parser__parser__tests__class.snap | 19 ------- ..._parser__parser__tests__comparison-10.snap | 2 - ..._parser__parser__tests__comparison-11.snap | 3 -- ...__parser__parser__tests__comparison-2.snap | 2 - ...__parser__parser__tests__comparison-3.snap | 2 - ...__parser__parser__tests__comparison-4.snap | 2 - ...__parser__parser__tests__comparison-5.snap | 2 - ...__parser__parser__tests__comparison-6.snap | 2 - ...__parser__parser__tests__comparison-7.snap | 2 - ...__parser__parser__tests__comparison-8.snap | 2 - ...__parser__parser__tests__comparison-9.snap | 2 - ...er__parser__parser__tests__comparison.snap | 2 - ...parser__tests__conditional_expression.snap | 5 -- ...n_parser__parser__parser__tests__dict.snap | 37 -------------- ...__parser__tests__ellipsis_statement-3.snap | 1 - ...on_parser__parser__parser__tests__for.snap | 17 ------- ...ser__parser__parser__tests__fstring-2.snap | 1 - ...ser__parser__parser__tests__fstring-3.snap | 2 - ...ser__parser__parser__tests__fstring-4.snap | 3 -- ...__parser__parser__tests__function_def.snap | 23 --------- ...ser__parser__parser__tests__functions.snap | 49 ------------------- ..._parser__tests__generator_expressions.snap | 41 ---------------- ...hon_parser__parser__parser__tests__if.snap | 22 --------- ...rser__parser__parser__tests__lambda-2.snap | 1 - ...rser__parser__parser__tests__lambda-3.snap | 1 - ...rser__parser__parser__tests__lambda-4.snap | 1 - ...rser__parser__parser__tests__lambda-5.snap | 1 - ...rser__parser__parser__tests__lambda-6.snap | 1 - ...rser__parser__parser__tests__lambda-7.snap | 1 - ...rser__parser__parser__tests__lambda-8.snap | 1 - ...rser__parser__parser__tests__lambda-9.snap | 1 - ...parser__parser__parser__tests__lambda.snap | 1 - ..._parser__parser__parser__tests__lists.snap | 40 --------------- ..._parser__parser__parser__tests__match.snap | 11 ----- ...rser__parser__tests__named_expression.snap | 2 - ...rser__parser__parser__tests__newlines.snap | 4 -- ...r__parser__tests__parse_assert_stmt-2.snap | 2 - ...ser__parser__tests__parse_assert_stmt.snap | 1 - ...r__parser__tests__parse_assignment-10.snap | 1 - ...r__parser__tests__parse_assignment-11.snap | 1 - ...r__parser__tests__parse_assignment-12.snap | 1 - ...r__parser__tests__parse_assignment-13.snap | 1 - ...r__parser__tests__parse_assignment-14.snap | 1 - ...r__parser__tests__parse_assignment-15.snap | 2 - ...r__parser__tests__parse_assignment-16.snap | 4 -- ...r__parser__tests__parse_assignment-17.snap | 1 - ...r__parser__tests__parse_assignment-18.snap | 1 - ...r__parser__tests__parse_assignment-19.snap | 1 - ...er__parser__tests__parse_assignment-2.snap | 1 - ...r__parser__tests__parse_assignment-20.snap | 1 - ...r__parser__tests__parse_assignment-21.snap | 1 - ...r__parser__tests__parse_assignment-22.snap | 1 - ...r__parser__tests__parse_assignment-23.snap | 1 - ...r__parser__tests__parse_assignment-24.snap | 1 - ...r__parser__tests__parse_assignment-25.snap | 1 - ...r__parser__tests__parse_assignment-26.snap | 1 - ...r__parser__tests__parse_assignment-27.snap | 1 - ...r__parser__tests__parse_assignment-28.snap | 1 - ...er__parser__tests__parse_assignment-3.snap | 1 - ...er__parser__tests__parse_assignment-4.snap | 1 - ...er__parser__tests__parse_assignment-5.snap | 1 - ...er__parser__tests__parse_assignment-6.snap | 1 - ...er__parser__tests__parse_assignment-7.snap | 1 - ...er__parser__tests__parse_assignment-8.snap | 1 - ...er__parser__tests__parse_assignment-9.snap | 1 - ...rser__parser__tests__parse_assignment.snap | 1 - ...arser__parser__tests__parse_bool_op-2.snap | 2 - ...arser__parser__tests__parse_bool_op-3.snap | 3 -- ...arser__parser__tests__parse_bool_op-4.snap | 3 -- ..._parser__parser__tests__parse_bool_op.snap | 2 - ...__parser__parser__tests__parse_call-2.snap | 2 - ...__parser__parser__tests__parse_call-3.snap | 3 -- ...__parser__parser__tests__parse_call-4.snap | 2 - ...__parser__parser__tests__parse_call-5.snap | 4 -- ...__parser__parser__tests__parse_call-6.snap | 5 -- ...__parser__parser__tests__parse_call-7.snap | 6 --- ...__parser__parser__tests__parse_call-8.snap | 2 - ...er__parser__parser__tests__parse_call.snap | 1 - ...rser__parser__tests__parse_del_stmt-2.snap | 2 - ...rser__parser__tests__parse_del_stmt-3.snap | 2 - ...parser__parser__tests__parse_del_stmt.snap | 1 - ...rser__parser__tests__parse_unary_op-2.snap | 1 - ...rser__parser__tests__parse_unary_op-3.snap | 1 - ...rser__parser__tests__parse_unary_op-4.snap | 1 - ...parser__parser__tests__parse_unary_op.snap | 1 - ...arser__tests__parse_yield_statement-2.snap | 1 - ...arser__tests__parse_yield_statement-3.snap | 2 - ...arser__tests__parse_yield_statement-4.snap | 2 - ...ser__parser__tests__raise_statement-2.snap | 1 - ...ser__parser__tests__raise_statement-3.snap | 2 - ...r__parser__tests__separate_statements.snap | 6 --- ...n_parser__parser__parser__tests__sets.snap | 49 ------------------- ...arser__parser__parser__tests__starred.snap | 1 - ...parser__parser__parser__tests__string.snap | 12 ----- ...ser__parser__parser__tests__subscript.snap | 48 ------------------ ...on_parser__parser__parser__tests__try.snap | 40 --------------- ...arser__parser__tests__try_statement-2.snap | 1 - ...arser__parser__tests__try_statement-3.snap | 1 - ...arser__parser__tests__try_statement-4.snap | 1 - ...arser__parser__tests__try_statement-5.snap | 1 - ...arser__parser__tests__try_statement-6.snap | 1 - ...arser__parser__parser__tests__tuple-2.snap | 3 -- ...arser__parser__parser__tests__tuple-3.snap | 3 -- ...arser__parser__parser__tests__tuple-4.snap | 3 -- ...arser__parser__parser__tests__tuple-5.snap | 1 - ...arser__parser__parser__tests__tuple-6.snap | 3 -- ..._parser__parser__parser__tests__tuple.snap | 3 -- ...r__parser__parser__tests__types_alias.snap | 4 -- ...ser__parser__tests__while_statement-2.snap | 1 - ...ser__parser__tests__while_statement-3.snap | 3 -- ...arser__parser__tests__while_statement.snap | 1 - ...n_parser__parser__parser__tests__with.snap | 22 --------- ...er__parser__tests__yield_expression-2.snap | 1 - ...er__parser__tests__yield_expression-3.snap | 1 - 121 files changed, 10 insertions(+), 644 deletions(-) diff --git a/parser/src/parser/ast.rs b/parser/src/parser/ast.rs index 61d10060..7df1c569 100644 --- a/parser/src/parser/ast.rs +++ b/parser/src/parser/ast.rs @@ -322,13 +322,22 @@ impl GetNode for Expression { } // https://docs.python.org/3/reference/expressions.html#atom-identifiers -#[derive(Debug, Clone)] +#[derive(Clone)] pub struct Name { pub node: Node, pub id: String, pub parenthesized: bool, } +impl fmt::Debug for Name { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("Name") + .field("node", &self.node) + .field("id", &self.id) + .finish() + } +} + #[derive(Clone, Debug, PartialEq)] pub struct Constant { pub node: Node, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap index 7a447d57..05212651 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), annotation: Name( @@ -31,7 +30,6 @@ Module { end: 6, }, id: "int", - parenthesized: false, }, ), value: Some( @@ -61,7 +59,6 @@ Module { end: 13, }, id: "b", - parenthesized: false, }, ), annotation: Subscript( @@ -77,7 +74,6 @@ Module { end: 20, }, id: "tuple", - parenthesized: false, }, ), slice: Tuple( @@ -94,7 +90,6 @@ Module { end: 24, }, id: "int", - parenthesized: false, }, ), Name( @@ -104,7 +99,6 @@ Module { end: 29, }, id: "int", - parenthesized: false, }, ), ], @@ -158,7 +152,6 @@ Module { end: 40, }, id: "c", - parenthesized: false, }, ), annotation: Subscript( @@ -174,7 +167,6 @@ Module { end: 47, }, id: "tuple", - parenthesized: false, }, ), slice: Tuple( @@ -191,7 +183,6 @@ Module { end: 51, }, id: "str", - parenthesized: false, }, ), Name( @@ -201,7 +192,6 @@ Module { end: 56, }, id: "int", - parenthesized: false, }, ), ], @@ -255,7 +245,6 @@ Module { end: 71, }, id: "d", - parenthesized: false, }, ), annotation: Subscript( @@ -271,7 +260,6 @@ Module { end: 78, }, id: "tuple", - parenthesized: false, }, ), slice: Tuple( @@ -288,7 +276,6 @@ Module { end: 82, }, id: "int", - parenthesized: false, }, ), Name( @@ -298,7 +285,6 @@ Module { end: 87, }, id: "int", - parenthesized: false, }, ), ], @@ -314,7 +300,6 @@ Module { end: 92, }, id: "b", - parenthesized: false, }, ), ), @@ -334,7 +319,6 @@ Module { end: 95, }, id: "e", - parenthesized: false, }, ), annotation: Subscript( @@ -350,7 +334,6 @@ Module { end: 102, }, id: "tuple", - parenthesized: false, }, ), slice: Tuple( @@ -367,7 +350,6 @@ Module { end: 106, }, id: "int", - parenthesized: false, }, ), Name( @@ -377,7 +359,6 @@ Module { end: 111, }, id: "int", - parenthesized: false, }, ), ], @@ -402,7 +383,6 @@ Module { end: 115, }, id: "f", - parenthesized: false, }, ), annotation: Subscript( @@ -418,7 +398,6 @@ Module { end: 122, }, id: "tuple", - parenthesized: false, }, ), slice: Tuple( @@ -435,7 +414,6 @@ Module { end: 126, }, id: "int", - parenthesized: false, }, ), Name( @@ -445,7 +423,6 @@ Module { end: 131, }, id: "int", - parenthesized: false, }, ), ], @@ -461,7 +438,6 @@ Module { end: 136, }, id: "e", - parenthesized: false, }, ), ), @@ -481,7 +457,6 @@ Module { end: 139, }, id: "g", - parenthesized: false, }, ), annotation: Subscript( @@ -497,7 +472,6 @@ Module { end: 146, }, id: "tuple", - parenthesized: false, }, ), slice: Tuple( @@ -514,7 +488,6 @@ Module { end: 150, }, id: "int", - parenthesized: false, }, ), Name( @@ -524,7 +497,6 @@ Module { end: 164, }, id: "int", - parenthesized: false, }, ), ], @@ -578,7 +550,6 @@ Module { end: 176, }, id: "h", - parenthesized: true, }, ), annotation: Name( @@ -588,7 +559,6 @@ Module { end: 182, }, id: "int", - parenthesized: false, }, ), value: Some( @@ -618,7 +588,6 @@ Module { end: 196, }, id: "i", - parenthesized: true, }, ), annotation: Name( @@ -628,7 +597,6 @@ Module { end: 202, }, id: "int", - parenthesized: false, }, ), value: Some( diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap index 7237904f..aa38bb3d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap @@ -28,7 +28,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), attr: "b", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap index 5b0cb2fb..4c447731 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), attr: "b_c", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap index 2110a61c..d5820c7d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap @@ -34,7 +34,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), attr: "b", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap index be72abe0..5311d506 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), attr: "b", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap index 7194a692..995db5b6 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap @@ -22,7 +22,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap index 312a163f..2286efe9 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap @@ -69,7 +69,6 @@ Module { end: 45, }, id: "b", - parenthesized: false, }, ), Name( @@ -79,7 +78,6 @@ Module { end: 48, }, id: "c", - parenthesized: false, }, ), ], @@ -113,7 +111,6 @@ Module { end: 66, }, id: "b", - parenthesized: false, }, ), Starred( @@ -129,7 +126,6 @@ Module { end: 70, }, id: "c", - parenthesized: false, }, ), }, @@ -149,7 +145,6 @@ Module { end: 75, }, id: "d", - parenthesized: false, }, ), }, @@ -183,7 +178,6 @@ Module { end: 93, }, id: "b", - parenthesized: false, }, ), Name( @@ -193,7 +187,6 @@ Module { end: 96, }, id: "c", - parenthesized: false, }, ), Name( @@ -203,7 +196,6 @@ Module { end: 99, }, id: "d", - parenthesized: false, }, ), ], @@ -249,7 +241,6 @@ Module { end: 114, }, id: "decor", - parenthesized: false, }, ), ], @@ -370,7 +361,6 @@ Module { end: 181, }, id: "U", - parenthesized: false, }, ), ), @@ -415,7 +405,6 @@ Module { end: 202, }, id: "U", - parenthesized: false, }, ), ), @@ -436,7 +425,6 @@ Module { end: 208, }, id: "W", - parenthesized: false, }, ), ), @@ -557,7 +545,6 @@ Module { end: 270, }, id: "U", - parenthesized: false, }, ), ), @@ -611,7 +598,6 @@ Module { end: 295, }, id: "U", - parenthesized: false, }, ), ), @@ -632,7 +618,6 @@ Module { end: 301, }, id: "W", - parenthesized: false, }, ), ), @@ -762,7 +747,6 @@ Module { end: 369, }, id: "U", - parenthesized: false, }, ), ), @@ -816,7 +800,6 @@ Module { end: 395, }, id: "U", - parenthesized: false, }, ), ), @@ -837,7 +820,6 @@ Module { end: 401, }, id: "W", - parenthesized: false, }, ), ), @@ -943,7 +925,6 @@ Module { end: 454, }, id: "U", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap index 4f166da8..c65672de 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 10, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap index 33f86533..23360964 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -37,7 +36,6 @@ Module { end: 5, }, id: "b", - parenthesized: false, }, ), Name( @@ -47,7 +45,6 @@ Module { end: 9, }, id: "c", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap index ada1697e..4a4f1dbc 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap index 3bea428b..0f5060d4 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 5, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap index ce98dba5..bfc057bf 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 5, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap index 53450c1d..8877db21 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap index cec0f363..a905a457 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap index 8ac3eb93..b8b3fff8 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap index 56705e9b..ff1b8ee8 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 10, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap index a5b9a075..cae71096 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap index b5c9f468..b04edfba 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -36,7 +35,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap index edf4e41e..691ea8fa 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap @@ -22,7 +22,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), body: Name( @@ -32,7 +31,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), orelse: IfExp( @@ -48,7 +46,6 @@ Module { end: 18, }, id: "d", - parenthesized: false, }, ), body: Name( @@ -58,7 +55,6 @@ Module { end: 13, }, id: "c", - parenthesized: false, }, ), orelse: Name( @@ -68,7 +64,6 @@ Module { end: 25, }, id: "e", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap index 38a3f8b5..fea075df 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap @@ -23,7 +23,6 @@ Module { end: 2, }, id: "a", - parenthesized: false, }, ), Name( @@ -33,7 +32,6 @@ Module { end: 8, }, id: "c", - parenthesized: false, }, ), ], @@ -45,7 +43,6 @@ Module { end: 5, }, id: "b", - parenthesized: false, }, ), Name( @@ -55,7 +52,6 @@ Module { end: 11, }, id: "d", - parenthesized: false, }, ), ], @@ -84,7 +80,6 @@ Module { end: 16, }, id: "a", - parenthesized: false, }, ), Name( @@ -94,7 +89,6 @@ Module { end: 22, }, id: "c", - parenthesized: false, }, ), ], @@ -106,7 +100,6 @@ Module { end: 19, }, id: "b", - parenthesized: false, }, ), Name( @@ -116,7 +109,6 @@ Module { end: 25, }, id: "d", - parenthesized: false, }, ), ], @@ -148,7 +140,6 @@ Module { end: 31, }, id: "a", - parenthesized: false, }, ), Name( @@ -158,7 +149,6 @@ Module { end: 38, }, id: "c", - parenthesized: false, }, ), ], @@ -170,7 +160,6 @@ Module { end: 35, }, id: "b", - parenthesized: false, }, ), Name( @@ -180,7 +169,6 @@ Module { end: 41, }, id: "d", - parenthesized: false, }, ), ], @@ -212,7 +200,6 @@ Module { end: 47, }, id: "a", - parenthesized: false, }, ), Name( @@ -222,7 +209,6 @@ Module { end: 53, }, id: "c", - parenthesized: false, }, ), Name( @@ -232,7 +218,6 @@ Module { end: 63, }, id: "e", - parenthesized: false, }, ), ], @@ -244,7 +229,6 @@ Module { end: 50, }, id: "b", - parenthesized: false, }, ), Name( @@ -254,7 +238,6 @@ Module { end: 56, }, id: "d", - parenthesized: false, }, ), Name( @@ -264,7 +247,6 @@ Module { end: 66, }, id: "f", - parenthesized: false, }, ), ], @@ -296,7 +278,6 @@ Module { end: 72, }, id: "a", - parenthesized: false, }, ), ], @@ -308,7 +289,6 @@ Module { end: 75, }, id: "b", - parenthesized: false, }, ), ], @@ -333,7 +313,6 @@ Module { end: 83, }, id: "a", - parenthesized: false, }, ), Name( @@ -343,7 +322,6 @@ Module { end: 89, }, id: "c", - parenthesized: false, }, ), ], @@ -355,7 +333,6 @@ Module { end: 86, }, id: "b", - parenthesized: false, }, ), Name( @@ -365,7 +342,6 @@ Module { end: 92, }, id: "d", - parenthesized: false, }, ), ], @@ -410,7 +386,6 @@ Module { end: 115, }, id: "name", - parenthesized: false, }, ), iter: Call( @@ -426,7 +401,6 @@ Module { end: 128, }, id: "get_names", - parenthesized: false, }, ), args: [], @@ -480,7 +454,6 @@ Module { end: 152, }, id: "name", - parenthesized: false, }, ), iter: Call( @@ -496,7 +469,6 @@ Module { end: 165, }, id: "get_names", - parenthesized: false, }, ), args: [], @@ -532,7 +504,6 @@ Module { end: 191, }, id: "aggregated_key_stats", - parenthesized: false, }, ), slice: Name( @@ -542,7 +513,6 @@ Module { end: 200, }, id: "idx_stat", - parenthesized: false, }, ), }, @@ -582,7 +552,6 @@ Module { end: 229, }, id: "filter_value_NONE", - parenthesized: false, }, ), Name( @@ -592,7 +561,6 @@ Module { end: 253, }, id: "filter_key_found", - parenthesized: false, }, ), Name( @@ -602,7 +570,6 @@ Module { end: 273, }, id: "client_types", - parenthesized: false, }, ), Name( @@ -612,7 +579,6 @@ Module { end: 293, }, id: "market_watch", - parenthesized: false, }, ), Name( @@ -622,7 +588,6 @@ Module { end: 315, }, id: "symbol", - parenthesized: false, }, ), Name( @@ -632,7 +597,6 @@ Module { end: 333, }, id: "name", - parenthesized: false, }, ), ], @@ -654,7 +618,6 @@ Module { end: 340, }, id: "di", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap index 3cbc2640..92be5aa4 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap index c1087872..8e292f2c 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap @@ -21,7 +21,6 @@ Module { end: 5, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -31,7 +30,6 @@ Module { end: 10, }, id: "b", - parenthesized: false, }, ), body: [ @@ -60,7 +58,6 @@ Module { end: 27, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -70,7 +67,6 @@ Module { end: 32, }, id: "b", - parenthesized: false, }, ), body: [ @@ -99,7 +95,6 @@ Module { end: 49, }, id: "a", - parenthesized: false, }, ), iter: Call( @@ -115,7 +110,6 @@ Module { end: 58, }, id: "range", - parenthesized: false, }, ), args: [ @@ -149,7 +143,6 @@ Module { end: 69, }, id: "a", - parenthesized: false, }, ), ], @@ -180,7 +173,6 @@ Module { end: 85, }, id: "b", - parenthesized: false, }, ), ], @@ -211,7 +203,6 @@ Module { end: 96, }, id: "a", - parenthesized: false, }, ), iter: Tuple( @@ -234,7 +225,6 @@ Module { end: 105, }, id: "range", - parenthesized: false, }, ), args: [ @@ -266,7 +256,6 @@ Module { end: 116, }, id: "range", - parenthesized: false, }, ), args: [ @@ -303,7 +292,6 @@ Module { end: 127, }, id: "a", - parenthesized: false, }, ), ], @@ -335,7 +323,6 @@ Module { end: 144, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -345,7 +332,6 @@ Module { end: 149, }, id: "b", - parenthesized: false, }, ), body: [ @@ -374,7 +360,6 @@ Module { end: 172, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -384,7 +369,6 @@ Module { end: 177, }, id: "b", - parenthesized: false, }, ), body: [ @@ -413,7 +397,6 @@ Module { end: 194, }, id: "a", - parenthesized: false, }, ), iter: List( diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap index 626156f7..4a56a0d6 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap @@ -38,7 +38,6 @@ Module { end: 10, }, id: "a", - parenthesized: false, }, ), conversion: -1, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap index 9939c2a0..505f3000 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap @@ -38,7 +38,6 @@ Module { end: 10, }, id: "a", - parenthesized: false, }, ), conversion: -1, @@ -67,7 +66,6 @@ Module { end: 14, }, id: "b", - parenthesized: false, }, ), conversion: -1, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap index a973d930..17c7e719 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap @@ -38,7 +38,6 @@ Module { end: 10, }, id: "a", - parenthesized: false, }, ), conversion: -1, @@ -67,7 +66,6 @@ Module { end: 14, }, id: "b", - parenthesized: false, }, ), conversion: -1, @@ -96,7 +94,6 @@ Module { end: 18, }, id: "c", - parenthesized: false, }, ), conversion: -1, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap index 2e5e4636..69b17035 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap @@ -303,7 +303,6 @@ Module { end: 109, }, id: "decor", - parenthesized: false, }, ), ], @@ -452,7 +451,6 @@ Module { end: 131, }, id: "decor", - parenthesized: false, }, ), ], @@ -793,7 +791,6 @@ Module { end: 338, }, id: "U", - parenthesized: false, }, ), ), @@ -851,7 +848,6 @@ Module { end: 359, }, id: "U", - parenthesized: false, }, ), ), @@ -872,7 +868,6 @@ Module { end: 365, }, id: "W", - parenthesized: false, }, ), ), @@ -1032,7 +1027,6 @@ Module { end: 427, }, id: "U", - parenthesized: false, }, ), ), @@ -1099,7 +1093,6 @@ Module { end: 452, }, id: "U", - parenthesized: false, }, ), ), @@ -1120,7 +1113,6 @@ Module { end: 458, }, id: "W", - parenthesized: false, }, ), ), @@ -1289,7 +1281,6 @@ Module { end: 526, }, id: "U", - parenthesized: false, }, ), ), @@ -1356,7 +1347,6 @@ Module { end: 552, }, id: "U", - parenthesized: false, }, ), ), @@ -1377,7 +1367,6 @@ Module { end: 558, }, id: "W", - parenthesized: false, }, ), ), @@ -1509,7 +1498,6 @@ Module { end: 611, }, id: "U", - parenthesized: false, }, ), ), @@ -1566,7 +1554,6 @@ Module { end: 683, }, id: "bool", - parenthesized: false, }, ), ), @@ -1585,7 +1572,6 @@ Module { end: 715, }, id: "bool", - parenthesized: false, }, ), ), @@ -1604,7 +1590,6 @@ Module { end: 750, }, id: "bool", - parenthesized: false, }, ), ), @@ -1623,7 +1608,6 @@ Module { end: 784, }, id: "bool", - parenthesized: false, }, ), ), @@ -1648,7 +1632,6 @@ Module { end: 923, }, id: "tuple", - parenthesized: false, }, ), slice: Tuple( @@ -1678,7 +1661,6 @@ Module { end: 928, }, id: "type", - parenthesized: false, }, ), slice: Name( @@ -1688,7 +1670,6 @@ Module { end: 932, }, id: "Any", - parenthesized: false, }, ), }, @@ -1706,7 +1687,6 @@ Module { end: 944, }, id: "Callable", - parenthesized: false, }, ), slice: Tuple( @@ -1732,7 +1712,6 @@ Module { end: 953, }, id: "Any", - parenthesized: false, }, ), ], @@ -1831,7 +1810,6 @@ Module { end: 984, }, id: "Any", - parenthesized: false, }, ), ), @@ -1861,7 +1839,6 @@ Module { end: 1007, }, id: "IdentityFunction", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap index e05250f8..12e704d4 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap @@ -52,7 +52,6 @@ Module { end: 50, }, id: "ticker_index", - parenthesized: false, }, ), ], @@ -75,7 +74,6 @@ Module { end: 65, }, id: "symbols_data", - parenthesized: false, }, ), attr: "get_ticker_index", @@ -89,7 +87,6 @@ Module { end: 89, }, id: "symbol", - parenthesized: false, }, ), ], @@ -119,7 +116,6 @@ Module { end: 111, }, id: "ticker_index", - parenthesized: false, }, ), ops: [ @@ -153,7 +149,6 @@ Module { end: 142, }, id: "market_symbol", - parenthesized: false, }, ), ], @@ -170,7 +165,6 @@ Module { end: 160, }, id: "get_symbol_info", - parenthesized: false, }, ), args: [ @@ -181,7 +175,6 @@ Module { end: 167, }, id: "symbol", - parenthesized: false, }, ), ], @@ -211,7 +204,6 @@ Module { end: 193, }, id: "market_symbol", - parenthesized: false, }, ), ops: [ @@ -251,7 +243,6 @@ Module { end: 231, }, id: "symbols_data", - parenthesized: false, }, ), attr: "append_symbol_to_file", @@ -265,7 +256,6 @@ Module { end: 267, }, id: "market_symbol", - parenthesized: false, }, ), ], @@ -289,7 +279,6 @@ Module { end: 293, }, id: "ticker_index", - parenthesized: false, }, ), ], @@ -306,7 +295,6 @@ Module { end: 309, }, id: "market_symbol", - parenthesized: false, }, ), attr: "index", @@ -336,7 +324,6 @@ Module { end: 339, }, id: "ticker_index", - parenthesized: false, }, ), ), @@ -377,7 +364,6 @@ Module { end: 397, }, id: "str", - parenthesized: false, }, ), ), @@ -404,7 +390,6 @@ Module { end: 415, }, id: "url", - parenthesized: false, }, ), ], @@ -427,7 +412,6 @@ Module { end: 442, }, id: "TSE_CLIENT_TYPE_DATA_URL", - parenthesized: false, }, ), attr: "format", @@ -441,7 +425,6 @@ Module { end: 462, }, id: "ticker_index", - parenthesized: false, }, ), ], @@ -477,7 +460,6 @@ Module { end: 495, }, id: "requests_retry_session", - parenthesized: false, }, ), args: [], @@ -494,7 +476,6 @@ Module { end: 508, }, id: "session", - parenthesized: false, }, ), ), @@ -515,7 +496,6 @@ Module { end: 526, }, id: "response", - parenthesized: false, }, ), ], @@ -538,7 +518,6 @@ Module { end: 536, }, id: "session", - parenthesized: false, }, ), attr: "get", @@ -552,7 +531,6 @@ Module { end: 544, }, id: "url", - parenthesized: false, }, ), ], @@ -599,7 +577,6 @@ Module { end: 565, }, id: "data", - parenthesized: false, }, ), ], @@ -628,7 +605,6 @@ Module { end: 576, }, id: "response", - parenthesized: false, }, ), attr: "text", @@ -669,7 +645,6 @@ Module { end: 608, }, id: "data", - parenthesized: false, }, ), ), @@ -685,7 +660,6 @@ Module { end: 406, }, id: "List", - parenthesized: false, }, ), ), @@ -727,7 +701,6 @@ Module { end: 635, }, id: "pd", - parenthesized: false, }, ), attr: "DataFrame", @@ -749,7 +722,6 @@ Module { end: 656, }, id: "str", - parenthesized: false, }, ), ), @@ -787,7 +759,6 @@ Module { end: 669, }, id: "len", - parenthesized: false, }, ), args: [ @@ -798,7 +769,6 @@ Module { end: 672, }, id: "df", - parenthesized: false, }, ), ], @@ -850,7 +820,6 @@ Module { end: 697, }, id: "pd", - parenthesized: false, }, ), attr: "DataFrame", @@ -879,7 +848,6 @@ Module { end: 720, }, id: "list", - parenthesized: false, }, ), args: [ @@ -902,7 +870,6 @@ Module { end: 745, }, id: "api_to_orderbook_mapping", - parenthesized: false, }, ), attr: "keys", @@ -953,7 +920,6 @@ Module { end: 761, }, id: "df", - parenthesized: false, }, ), attr: "rename", @@ -976,7 +942,6 @@ Module { end: 790, }, id: "reversed_keys", - parenthesized: false, }, ), }, @@ -1018,7 +983,6 @@ Module { end: 812, }, id: "df", - parenthesized: false, }, ), ], @@ -1041,7 +1005,6 @@ Module { end: 817, }, id: "df", - parenthesized: false, }, ), attr: "loc", @@ -1078,7 +1041,6 @@ Module { end: 829, }, id: "list", - parenthesized: false, }, ), args: [ @@ -1101,7 +1063,6 @@ Module { end: 854, }, id: "api_to_orderbook_mapping", - parenthesized: false, }, ), attr: "keys", @@ -1146,7 +1107,6 @@ Module { end: 870, }, id: "df", - parenthesized: false, }, ), slice: Constant( @@ -1180,7 +1140,6 @@ Module { end: 887, }, id: "pd", - parenthesized: false, }, ), attr: "to_datetime", @@ -1208,7 +1167,6 @@ Module { end: 913, }, id: "date", - parenthesized: false, }, ), right: Constant( @@ -1247,7 +1205,6 @@ Module { end: 924, }, id: "df", - parenthesized: false, }, ), slice: Constant( @@ -1272,7 +1229,6 @@ Module { end: 947, }, id: "str", - parenthesized: false, }, ), ], @@ -1324,7 +1280,6 @@ Module { end: 985, }, id: "df", - parenthesized: false, }, ), ], @@ -1347,7 +1302,6 @@ Module { end: 990, }, id: "df", - parenthesized: false, }, ), attr: "sort_values", @@ -1448,7 +1402,6 @@ Module { end: 1056, }, id: "df", - parenthesized: false, }, ), attr: "set_index", @@ -1510,7 +1463,6 @@ Module { end: 1099, }, id: "df", - parenthesized: false, }, ), attr: "drop", @@ -1584,7 +1536,6 @@ Module { end: 1151, }, id: "df", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap index 880cc924..3016d066 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap @@ -22,7 +22,6 @@ Module { end: 2, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -38,7 +37,6 @@ Module { end: 8, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -48,7 +46,6 @@ Module { end: 13, }, id: "b", - parenthesized: false, }, ), ifs: [], @@ -72,7 +69,6 @@ Module { end: 18, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -88,7 +84,6 @@ Module { end: 24, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -98,7 +93,6 @@ Module { end: 29, }, id: "b", - parenthesized: false, }, ), ifs: [ @@ -109,7 +103,6 @@ Module { end: 34, }, id: "c", - parenthesized: false, }, ), ], @@ -133,7 +126,6 @@ Module { end: 39, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -149,7 +141,6 @@ Module { end: 45, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -159,7 +150,6 @@ Module { end: 50, }, id: "b", - parenthesized: false, }, ), ifs: [ @@ -170,7 +160,6 @@ Module { end: 55, }, id: "c", - parenthesized: false, }, ), Name( @@ -180,7 +169,6 @@ Module { end: 60, }, id: "d", - parenthesized: false, }, ), ], @@ -204,7 +192,6 @@ Module { end: 65, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -220,7 +207,6 @@ Module { end: 71, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -230,7 +216,6 @@ Module { end: 76, }, id: "b", - parenthesized: false, }, ), ifs: [], @@ -248,7 +233,6 @@ Module { end: 82, }, id: "c", - parenthesized: false, }, ), iter: Name( @@ -258,7 +242,6 @@ Module { end: 87, }, id: "d", - parenthesized: false, }, ), ifs: [], @@ -288,7 +271,6 @@ Module { end: 94, }, id: "ord", - parenthesized: false, }, ), args: [ @@ -299,7 +281,6 @@ Module { end: 96, }, id: "c", - parenthesized: false, }, ), ], @@ -321,7 +302,6 @@ Module { end: 106, }, id: "line", - parenthesized: false, }, ), iter: Name( @@ -331,7 +311,6 @@ Module { end: 114, }, id: "file", - parenthesized: false, }, ), ifs: [], @@ -349,7 +328,6 @@ Module { end: 120, }, id: "c", - parenthesized: false, }, ), iter: Name( @@ -359,7 +337,6 @@ Module { end: 128, }, id: "line", - parenthesized: false, }, ), ifs: [], @@ -390,7 +367,6 @@ Module { end: 133, }, id: "x", - parenthesized: false, }, ), right: Name( @@ -400,7 +376,6 @@ Module { end: 135, }, id: "y", - parenthesized: false, }, ), }, @@ -418,7 +393,6 @@ Module { end: 141, }, id: "x", - parenthesized: false, }, ), iter: Call( @@ -434,7 +408,6 @@ Module { end: 150, }, id: "range", - parenthesized: false, }, ), args: [ @@ -468,7 +441,6 @@ Module { end: 160, }, id: "y", - parenthesized: false, }, ), iter: Call( @@ -484,7 +456,6 @@ Module { end: 169, }, id: "range", - parenthesized: false, }, ), args: [ @@ -524,7 +495,6 @@ Module { end: 178, }, id: "x", - parenthesized: false, }, ), right: Name( @@ -534,7 +504,6 @@ Module { end: 180, }, id: "y", - parenthesized: false, }, ), }, @@ -576,7 +545,6 @@ Module { end: 211, }, id: "has_explicit_annotation", - parenthesized: false, }, ), ], @@ -601,7 +569,6 @@ Module { end: 224, }, id: "isinstance", - parenthesized: false, }, ), args: [ @@ -618,7 +585,6 @@ Module { end: 229, }, id: "fdef", - parenthesized: false, }, ), attr: "type", @@ -631,7 +597,6 @@ Module { end: 248, }, id: "CallableType", - parenthesized: false, }, ), ], @@ -653,7 +618,6 @@ Module { end: 257, }, id: "any", - parenthesized: false, }, ), args: [ @@ -683,7 +647,6 @@ Module { end: 285, }, id: "is_unannotated_any", - parenthesized: false, }, ), args: [ @@ -694,7 +657,6 @@ Module { end: 287, }, id: "t", - parenthesized: false, }, ), ], @@ -718,7 +680,6 @@ Module { end: 294, }, id: "t", - parenthesized: false, }, ), iter: BinOp( @@ -747,7 +708,6 @@ Module { end: 302, }, id: "fdef", - parenthesized: false, }, ), attr: "type", @@ -782,7 +742,6 @@ Module { end: 325, }, id: "fdef", - parenthesized: false, }, ), attr: "type", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap index 971cd659..2be8c027 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap @@ -21,7 +21,6 @@ Module { end: 4, }, id: "a", - parenthesized: false, }, ), body: [ @@ -50,7 +49,6 @@ Module { end: 20, }, id: "a", - parenthesized: false, }, ), body: [ @@ -79,7 +77,6 @@ Module { end: 37, }, id: "a", - parenthesized: false, }, ), body: [ @@ -108,7 +105,6 @@ Module { end: 49, }, id: "a", - parenthesized: false, }, ), body: [ @@ -151,7 +147,6 @@ Module { end: 70, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -165,7 +160,6 @@ Module { end: 75, }, id: "b", - parenthesized: false, }, ), ], @@ -203,7 +197,6 @@ Module { end: 99, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -217,7 +210,6 @@ Module { end: 104, }, id: "b", - parenthesized: false, }, ), ], @@ -253,7 +245,6 @@ Module { end: 133, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -267,7 +258,6 @@ Module { end: 138, }, id: "c", - parenthesized: false, }, ), ], @@ -308,7 +298,6 @@ Module { end: 166, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -322,7 +311,6 @@ Module { end: 171, }, id: "b", - parenthesized: false, }, ), ], @@ -358,7 +346,6 @@ Module { end: 200, }, id: "a", - parenthesized: false, }, ), ops: [ @@ -372,7 +359,6 @@ Module { end: 205, }, id: "c", - parenthesized: false, }, ), ], @@ -416,7 +402,6 @@ Module { end: 261, }, id: "a", - parenthesized: false, }, ), body: [ @@ -434,7 +419,6 @@ Module { end: 268, }, id: "a", - parenthesized: false, }, ), ], @@ -466,7 +450,6 @@ Module { end: 277, }, id: "a", - parenthesized: false, }, ), body: [ @@ -484,7 +467,6 @@ Module { end: 284, }, id: "b", - parenthesized: false, }, ), ], @@ -522,7 +504,6 @@ Module { end: 297, }, id: "self", - parenthesized: false, }, ), attr: "adjust", @@ -559,7 +540,6 @@ Module { end: 332, }, id: "print", - parenthesized: false, }, ), args: [ @@ -595,7 +575,6 @@ Module { end: 417, }, id: "print", - parenthesized: false, }, ), args: [ @@ -634,7 +613,6 @@ Module { end: 451, }, id: "print", - parenthesized: false, }, ), args: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap index 336ba64d..fbd5e034 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap @@ -44,7 +44,6 @@ Module { end: 11, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap index 95dd4e67..db0ba84c 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap @@ -52,7 +52,6 @@ Module { end: 14, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap index a28e071f..65b5b84a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap @@ -60,7 +60,6 @@ Module { end: 17, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap index f328fcdd..fe2ffc23 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap @@ -53,7 +53,6 @@ Module { end: 15, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap index b62d28cb..5b56b91b 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap @@ -64,7 +64,6 @@ Module { end: 18, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap index da1edb75..4bbdaabd 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap @@ -73,7 +73,6 @@ Module { end: 23, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap index e76f6a70..ad856666 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap @@ -54,7 +54,6 @@ Module { end: 14, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap index 381a7fd9..650581b3 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap @@ -61,7 +61,6 @@ Module { end: 14, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap index e29e7487..c24e51ed 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap @@ -35,7 +35,6 @@ Module { end: 9, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap index 1cf27e7e..d90263bc 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap @@ -23,7 +23,6 @@ Module { end: 3, }, id: "a", - parenthesized: false, }, ), Name( @@ -33,7 +32,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), Name( @@ -43,7 +41,6 @@ Module { end: 9, }, id: "c", - parenthesized: false, }, ), ], @@ -72,7 +69,6 @@ Module { end: 14, }, id: "a", - parenthesized: false, }, ), Name( @@ -82,7 +78,6 @@ Module { end: 17, }, id: "b", - parenthesized: false, }, ), Name( @@ -92,7 +87,6 @@ Module { end: 20, }, id: "c", - parenthesized: false, }, ), ], @@ -124,7 +118,6 @@ Module { end: 27, }, id: "a", - parenthesized: false, }, ), Name( @@ -134,7 +127,6 @@ Module { end: 30, }, id: "b", - parenthesized: false, }, ), Name( @@ -144,7 +136,6 @@ Module { end: 33, }, id: "c", - parenthesized: false, }, ), ], @@ -176,7 +167,6 @@ Module { end: 39, }, id: "a", - parenthesized: false, }, ), Name( @@ -186,7 +176,6 @@ Module { end: 42, }, id: "b", - parenthesized: false, }, ), Name( @@ -196,7 +185,6 @@ Module { end: 49, }, id: "c", - parenthesized: false, }, ), ], @@ -228,7 +216,6 @@ Module { end: 55, }, id: "a", - parenthesized: false, }, ), ], @@ -253,7 +240,6 @@ Module { end: 63, }, id: "a", - parenthesized: false, }, ), Name( @@ -263,7 +249,6 @@ Module { end: 66, }, id: "b", - parenthesized: false, }, ), Name( @@ -273,7 +258,6 @@ Module { end: 69, }, id: "c", - parenthesized: false, }, ), ], @@ -294,7 +278,6 @@ Module { end: 84, }, id: "month_names", - parenthesized: false, }, ), ], @@ -432,7 +415,6 @@ Module { end: 310, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -448,7 +430,6 @@ Module { end: 316, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -458,7 +439,6 @@ Module { end: 321, }, id: "b", - parenthesized: false, }, ), ifs: [], @@ -482,7 +462,6 @@ Module { end: 326, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -498,7 +477,6 @@ Module { end: 332, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -508,7 +486,6 @@ Module { end: 337, }, id: "b", - parenthesized: false, }, ), ifs: [ @@ -519,7 +496,6 @@ Module { end: 342, }, id: "c", - parenthesized: false, }, ), ], @@ -543,7 +519,6 @@ Module { end: 347, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -559,7 +534,6 @@ Module { end: 353, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -569,7 +543,6 @@ Module { end: 358, }, id: "b", - parenthesized: false, }, ), ifs: [ @@ -580,7 +553,6 @@ Module { end: 363, }, id: "c", - parenthesized: false, }, ), Name( @@ -590,7 +562,6 @@ Module { end: 368, }, id: "d", - parenthesized: false, }, ), ], @@ -614,7 +585,6 @@ Module { end: 373, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -630,7 +600,6 @@ Module { end: 379, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -640,7 +609,6 @@ Module { end: 384, }, id: "b", - parenthesized: false, }, ), ifs: [], @@ -658,7 +626,6 @@ Module { end: 390, }, id: "c", - parenthesized: false, }, ), iter: Name( @@ -668,7 +635,6 @@ Module { end: 395, }, id: "d", - parenthesized: false, }, ), ifs: [], @@ -692,7 +658,6 @@ Module { end: 400, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -708,7 +673,6 @@ Module { end: 406, }, id: "a", - parenthesized: false, }, ), iter: Name( @@ -718,7 +682,6 @@ Module { end: 411, }, id: "b", - parenthesized: false, }, ), ifs: [ @@ -729,7 +692,6 @@ Module { end: 416, }, id: "c", - parenthesized: false, }, ), ], @@ -747,7 +709,6 @@ Module { end: 422, }, id: "d", - parenthesized: false, }, ), iter: Name( @@ -757,7 +718,6 @@ Module { end: 427, }, id: "e", - parenthesized: false, }, ), ifs: [], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap index 34cb5b14..eab6db75 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap @@ -21,7 +21,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), cases: [ @@ -75,7 +74,6 @@ Module { end: 42, }, id: "a", - parenthesized: false, }, ), cases: [ @@ -156,7 +154,6 @@ Module { end: 81, }, id: "a", - parenthesized: false, }, ), attr: "b", @@ -213,7 +210,6 @@ Module { end: 118, }, id: "a", - parenthesized: false, }, ), cases: [ @@ -439,7 +435,6 @@ Module { end: 291, }, id: "a", - parenthesized: false, }, ), cases: [ @@ -467,7 +462,6 @@ Module { end: 301, }, id: "a", - parenthesized: false, }, ), attr: "b", @@ -532,7 +526,6 @@ Module { end: 353, }, id: "a", - parenthesized: false, }, ), cases: [ @@ -695,7 +688,6 @@ Module { end: 461, }, id: "x", - parenthesized: false, }, ), cases: [ @@ -717,7 +709,6 @@ Module { end: 471, }, id: "Point2D", - parenthesized: false, }, ), patterns: [ @@ -790,7 +781,6 @@ Module { end: 508, }, id: "Point3D", - parenthesized: false, }, ), patterns: [], @@ -882,7 +872,6 @@ Module { end: 554, }, id: "x", - parenthesized: false, }, ), cases: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap index 753358ba..1a38cde5 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap @@ -22,7 +22,6 @@ Module { end: 2, }, id: "a", - parenthesized: false, }, ), value: Name( @@ -32,7 +31,6 @@ Module { end: 7, }, id: "b", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap index 0974a883..a4113fdd 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "_", - parenthesized: false, }, ), ], @@ -70,7 +69,6 @@ Module { end: 23, }, id: "_", - parenthesized: false, }, ), ], @@ -118,7 +116,6 @@ Module { end: 45, }, id: "_", - parenthesized: false, }, ), ], @@ -223,7 +220,6 @@ Module { end: 121, }, id: "object", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap index 4e2b06ff..737a547a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap @@ -21,7 +21,6 @@ Module { end: 8, }, id: "a", - parenthesized: false, }, ), msg: Some( @@ -32,7 +31,6 @@ Module { end: 11, }, id: "b", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap index e3a027f4..65dcc720 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap @@ -21,7 +21,6 @@ Module { end: 8, }, id: "a", - parenthesized: false, }, ), msg: None, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap index c1c8081f..e2e748e8 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap index e4c9d60f..2935262a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap index c416fee0..13b562db 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap index 3c9e9d97..ede78fe9 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap index 92eba599..2874d199 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap index b637c842..be694ebb 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), Name( @@ -32,7 +31,6 @@ Module { end: 5, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap index c8c11320..b0be3284 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap @@ -29,7 +29,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), Name( @@ -39,7 +38,6 @@ Module { end: 3, }, id: "b", - parenthesized: false, }, ), ], @@ -59,7 +57,6 @@ Module { end: 7, }, id: "c", - parenthesized: false, }, ), Name( @@ -69,7 +66,6 @@ Module { end: 9, }, id: "d", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap index 7efbbf14..2efd99ef 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: Add, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap index 7fa31141..94e52649 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: Sub, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap index 45a22197..0e565773 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: Mult, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap index 36e5fd2c..e25e4e2f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap index cc78289d..26ad4485 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: Div, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap index 4b93abe1..946f244b 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: FloorDiv, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap index 6396d070..efb53fdd 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: Mod, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap index 3d43347b..22b2041a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: Pow, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap index 6ad27fb3..5f70e01e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: LShift, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap index a185dd68..8b1d5fc7 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: RShift, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap index d2a418bf..89c83b46 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: BitAnd, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap index 36bb17ef..1777d02d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: BitXor, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap index 29f91a14..ebf7e5ee 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap @@ -21,7 +21,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), op: BitOr, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap index 6eba900a..d25545c5 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap index 1a29f305..750ca5ac 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap index 87d1996c..95d67437 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap index 494c8aa4..9ed5300b 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap index 8aae3995..6cd86208 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap index a766c982..ba21e648 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap index e47eb5cc..55ef1f23 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap index fd85ca41..8b9522d8 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap index 53dc06b9..a0d94b6a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap @@ -24,7 +24,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), Name( @@ -34,7 +33,6 @@ Module { end: 7, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap index 60f969f1..e4712015 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap @@ -24,7 +24,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), BoolOp( @@ -42,7 +41,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), Name( @@ -52,7 +50,6 @@ Module { end: 11, }, id: "c", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap index 21fabc0f..633354fc 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap @@ -32,7 +32,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), Name( @@ -42,7 +41,6 @@ Module { end: 7, }, id: "b", - parenthesized: false, }, ), ], @@ -55,7 +53,6 @@ Module { end: 12, }, id: "c", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap index 118cff4b..facbd4d7 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap @@ -24,7 +24,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), Name( @@ -34,7 +33,6 @@ Module { end: 6, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-2.snap index 3f8f2f0e..15099e51 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-2.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), args: [ @@ -33,7 +32,6 @@ Module { end: 3, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-3.snap index be96375f..2c2e50ea 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-3.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), args: [ @@ -33,7 +32,6 @@ Module { end: 3, }, id: "b", - parenthesized: false, }, ), Name( @@ -43,7 +41,6 @@ Module { end: 6, }, id: "c", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-4.snap index 6f86ebc9..a8a9004d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-4.snap @@ -22,7 +22,6 @@ Module { end: 4, }, id: "func", - parenthesized: false, }, ), args: [], @@ -42,7 +41,6 @@ Module { end: 8, }, id: "c", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-5.snap index bae56958..be0c6d79 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-5.snap @@ -22,7 +22,6 @@ Module { end: 4, }, id: "func", - parenthesized: false, }, ), args: [ @@ -33,7 +32,6 @@ Module { end: 6, }, id: "a", - parenthesized: false, }, ), ], @@ -53,7 +51,6 @@ Module { end: 11, }, id: "c", - parenthesized: false, }, ), }, @@ -72,7 +69,6 @@ Module { end: 16, }, id: "e", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-6.snap index d1ea9aa6..35c142e8 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-6.snap @@ -22,7 +22,6 @@ Module { end: 4, }, id: "func", - parenthesized: false, }, ), args: [ @@ -33,7 +32,6 @@ Module { end: 6, }, id: "a", - parenthesized: false, }, ), Starred( @@ -49,7 +47,6 @@ Module { end: 20, }, id: "f", - parenthesized: false, }, ), }, @@ -71,7 +68,6 @@ Module { end: 11, }, id: "c", - parenthesized: false, }, ), }, @@ -90,7 +86,6 @@ Module { end: 16, }, id: "e", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-7.snap index 19d7377c..3d96315f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-7.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-7.snap @@ -22,7 +22,6 @@ Module { end: 4, }, id: "func", - parenthesized: false, }, ), args: [ @@ -33,7 +32,6 @@ Module { end: 6, }, id: "a", - parenthesized: false, }, ), Starred( @@ -49,7 +47,6 @@ Module { end: 20, }, id: "f", - parenthesized: false, }, ), }, @@ -71,7 +68,6 @@ Module { end: 11, }, id: "c", - parenthesized: false, }, ), }, @@ -90,7 +86,6 @@ Module { end: 16, }, id: "e", - parenthesized: false, }, ), }, @@ -107,7 +102,6 @@ Module { end: 25, }, id: "g", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-8.snap index a4b4134a..996a23aa 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-8.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-8.snap @@ -22,7 +22,6 @@ Module { end: 4, }, id: "func", - parenthesized: false, }, ), args: [ @@ -33,7 +32,6 @@ Module { end: 6, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap index 879d02ed..4fb2a5ea 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "a", - parenthesized: false, }, ), args: [], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap index e0fddebb..041a3c00 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap @@ -22,7 +22,6 @@ Module { end: 5, }, id: "a", - parenthesized: false, }, ), Name( @@ -32,7 +31,6 @@ Module { end: 8, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap index 5680120d..170c1665 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap @@ -22,7 +22,6 @@ Module { end: 5, }, id: "a", - parenthesized: false, }, ), Name( @@ -32,7 +31,6 @@ Module { end: 8, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap index 6eada50c..5c1a0e30 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap @@ -22,7 +22,6 @@ Module { end: 5, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap index 2436253d..b22094b0 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap @@ -23,7 +23,6 @@ Module { end: 3, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap index 2d401c66..25a998b9 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap @@ -23,7 +23,6 @@ Module { end: 3, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap index 3b753971..54e7e4cd 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap @@ -23,7 +23,6 @@ Module { end: 2, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap index 1a76af0e..bcc7175b 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap @@ -23,7 +23,6 @@ Module { end: 5, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap index 3d71fa16..93116500 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap @@ -23,7 +23,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap index 98746da1..4054102e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap @@ -30,7 +30,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), Name( @@ -40,7 +39,6 @@ Module { end: 10, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap index bdc7f04a..d78f0030 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap @@ -30,7 +30,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), Name( @@ -40,7 +39,6 @@ Module { end: 10, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap index 27ab911a..cd63812d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap @@ -22,7 +22,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap index 81208189..e7d12733 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap @@ -22,7 +22,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), ), @@ -34,7 +33,6 @@ Module { end: 14, }, id: "c", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap index 20f6a3d9..8eb1c99e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap @@ -43,7 +43,6 @@ Module { end: 115, }, id: "x", - parenthesized: false, }, ), ], @@ -72,7 +71,6 @@ Module { end: 122, }, id: "y", - parenthesized: false, }, ), ], @@ -108,7 +106,6 @@ Module { end: 139, }, id: "x", - parenthesized: false, }, ), right: Name( @@ -118,7 +115,6 @@ Module { end: 143, }, id: "y", - parenthesized: false, }, ), }, @@ -175,7 +171,6 @@ Module { end: 234, }, id: "x", - parenthesized: false, }, ), right: Name( @@ -185,7 +180,6 @@ Module { end: 238, }, id: "y", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap index 1f40d20a..4b28f724 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap @@ -23,7 +23,6 @@ Module { end: 2, }, id: "a", - parenthesized: false, }, ), Name( @@ -33,7 +32,6 @@ Module { end: 5, }, id: "b", - parenthesized: false, }, ), Name( @@ -43,7 +41,6 @@ Module { end: 8, }, id: "c", - parenthesized: false, }, ), ], @@ -65,7 +62,6 @@ Module { end: 13, }, id: "a", - parenthesized: false, }, ), Name( @@ -75,7 +71,6 @@ Module { end: 16, }, id: "b", - parenthesized: false, }, ), Name( @@ -85,7 +80,6 @@ Module { end: 19, }, id: "c", - parenthesized: false, }, ), ], @@ -107,7 +101,6 @@ Module { end: 25, }, id: "a", - parenthesized: false, }, ), Name( @@ -117,7 +110,6 @@ Module { end: 28, }, id: "b", - parenthesized: false, }, ), Name( @@ -127,7 +119,6 @@ Module { end: 31, }, id: "c", - parenthesized: false, }, ), ], @@ -149,7 +140,6 @@ Module { end: 36, }, id: "a", - parenthesized: false, }, ), Name( @@ -159,7 +149,6 @@ Module { end: 39, }, id: "b", - parenthesized: false, }, ), Name( @@ -169,7 +158,6 @@ Module { end: 46, }, id: "c", - parenthesized: false, }, ), ], @@ -191,7 +179,6 @@ Module { end: 51, }, id: "a", - parenthesized: false, }, ), ], @@ -213,7 +200,6 @@ Module { end: 58, }, id: "a", - parenthesized: false, }, ), Name( @@ -223,7 +209,6 @@ Module { end: 61, }, id: "b", - parenthesized: false, }, ), Name( @@ -233,7 +218,6 @@ Module { end: 64, }, id: "c", - parenthesized: false, }, ), ], @@ -254,7 +238,6 @@ Module { end: 70, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -270,7 +253,6 @@ Module { end: 76, }, id: "a", - parenthesized: false, }, ), iter: Call( @@ -286,7 +268,6 @@ Module { end: 85, }, id: "range", - parenthesized: false, }, ), args: [ @@ -326,7 +307,6 @@ Module { end: 94, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -342,7 +322,6 @@ Module { end: 100, }, id: "a", - parenthesized: false, }, ), iter: Call( @@ -358,7 +337,6 @@ Module { end: 109, }, id: "range", - parenthesized: false, }, ), args: [ @@ -398,7 +376,6 @@ Module { end: 119, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -414,7 +391,6 @@ Module { end: 125, }, id: "a", - parenthesized: false, }, ), iter: Call( @@ -430,7 +406,6 @@ Module { end: 134, }, id: "range", - parenthesized: false, }, ), args: [ @@ -470,7 +445,6 @@ Module { end: 143, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -486,7 +460,6 @@ Module { end: 149, }, id: "a", - parenthesized: false, }, ), iter: Call( @@ -502,7 +475,6 @@ Module { end: 158, }, id: "range", - parenthesized: false, }, ), args: [ @@ -542,7 +514,6 @@ Module { end: 167, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -558,7 +529,6 @@ Module { end: 173, }, id: "a", - parenthesized: false, }, ), iter: Call( @@ -574,7 +544,6 @@ Module { end: 182, }, id: "range", - parenthesized: false, }, ), args: [ @@ -608,7 +577,6 @@ Module { end: 192, }, id: "b", - parenthesized: false, }, ), iter: Call( @@ -624,7 +592,6 @@ Module { end: 201, }, id: "range", - parenthesized: false, }, ), args: [ @@ -664,7 +631,6 @@ Module { end: 210, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -680,7 +646,6 @@ Module { end: 216, }, id: "a", - parenthesized: false, }, ), iter: Call( @@ -696,7 +661,6 @@ Module { end: 225, }, id: "range", - parenthesized: false, }, ), args: [ @@ -730,7 +694,6 @@ Module { end: 235, }, id: "b", - parenthesized: false, }, ), iter: Call( @@ -746,7 +709,6 @@ Module { end: 244, }, id: "range", - parenthesized: false, }, ), args: [ @@ -786,7 +748,6 @@ Module { end: 254, }, id: "a", - parenthesized: false, }, ), generators: [ @@ -802,7 +763,6 @@ Module { end: 260, }, id: "a", - parenthesized: false, }, ), iter: Call( @@ -818,7 +778,6 @@ Module { end: 269, }, id: "range", - parenthesized: false, }, ), args: [ @@ -852,7 +811,6 @@ Module { end: 279, }, id: "b", - parenthesized: false, }, ), iter: Call( @@ -868,7 +826,6 @@ Module { end: 288, }, id: "range", - parenthesized: false, }, ), args: [ @@ -915,7 +872,6 @@ Module { end: 304, }, id: "a", - parenthesized: false, }, ), Name( @@ -925,7 +881,6 @@ Module { end: 306, }, id: "b", - parenthesized: false, }, ), ], @@ -944,7 +899,6 @@ Module { end: 313, }, id: "a", - parenthesized: false, }, ), iter: Call( @@ -960,7 +914,6 @@ Module { end: 322, }, id: "range", - parenthesized: false, }, ), args: [ @@ -994,7 +947,6 @@ Module { end: 332, }, id: "b", - parenthesized: false, }, ), iter: Call( @@ -1010,7 +962,6 @@ Module { end: 341, }, id: "range", - parenthesized: false, }, ), args: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap index 5d18d25a..7ef46167 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap @@ -22,7 +22,6 @@ Module { end: 3, }, id: "a", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap index a71281d2..2a28331e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap @@ -22,7 +22,6 @@ Module { end: 1, }, id: "x", - parenthesized: false, }, ), ], @@ -51,7 +50,6 @@ Module { end: 24, }, id: "raw", - parenthesized: false, }, ), ], @@ -80,7 +78,6 @@ Module { end: 43, }, id: "y", - parenthesized: false, }, ), ], @@ -128,7 +125,6 @@ Module { end: 66, }, id: "self", - parenthesized: false, }, ), attr: "__class__", @@ -175,7 +171,6 @@ Module { end: 92, }, id: "self", - parenthesized: false, }, ), attr: "_display", @@ -225,7 +220,6 @@ Module { end: 116, }, id: "num", - parenthesized: false, }, ), conversion: -1, @@ -265,7 +259,6 @@ Module { end: 127, }, id: "unit", - parenthesized: false, }, ), conversion: -1, @@ -312,7 +305,6 @@ Module { end: 153, }, id: "name", - parenthesized: false, }, ), slice: Slice( @@ -383,7 +375,6 @@ Module { end: 177, }, id: "a", - parenthesized: false, }, ), right: Name( @@ -393,7 +384,6 @@ Module { end: 179, }, id: "b", - parenthesized: false, }, ), }, @@ -451,7 +441,6 @@ Module { end: 198, }, id: "c", - parenthesized: false, }, ), right: Name( @@ -461,7 +450,6 @@ Module { end: 200, }, id: "d", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap index 5e4ee8d5..ad4fef0d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap @@ -22,7 +22,6 @@ Module { end: 7, }, id: "indices", - parenthesized: false, }, ), ], @@ -39,7 +38,6 @@ Module { end: 27, }, id: "list_of_key_stats", - parenthesized: false, }, ), slice: Slice( @@ -91,7 +89,6 @@ Module { end: 41, }, id: "values", - parenthesized: false, }, ), ], @@ -108,7 +105,6 @@ Module { end: 61, }, id: "list_of_key_stats", - parenthesized: false, }, ), slice: Slice( @@ -160,7 +156,6 @@ Module { end: 70, }, id: "a", - parenthesized: false, }, ), slice: Name( @@ -170,7 +165,6 @@ Module { end: 72, }, id: "b", - parenthesized: false, }, ), }, @@ -190,7 +184,6 @@ Module { end: 76, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -221,7 +214,6 @@ Module { end: 82, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -239,7 +231,6 @@ Module { end: 89, }, id: "step", - parenthesized: false, }, ), ), @@ -263,7 +254,6 @@ Module { end: 92, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -281,7 +271,6 @@ Module { end: 99, }, id: "step", - parenthesized: false, }, ), ), @@ -305,7 +294,6 @@ Module { end: 104, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -324,7 +312,6 @@ Module { end: 111, }, id: "upper", - parenthesized: false, }, ), ), @@ -347,7 +334,6 @@ Module { end: 114, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -388,7 +374,6 @@ Module { end: 120, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -406,7 +391,6 @@ Module { end: 127, }, id: "upper", - parenthesized: false, }, ), ), @@ -430,7 +414,6 @@ Module { end: 131, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -448,7 +431,6 @@ Module { end: 138, }, id: "upper", - parenthesized: false, }, ), ), @@ -460,7 +442,6 @@ Module { end: 143, }, id: "step", - parenthesized: false, }, ), ), @@ -483,7 +464,6 @@ Module { end: 147, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -500,7 +480,6 @@ Module { end: 153, }, id: "lower", - parenthesized: false, }, ), ), @@ -525,7 +504,6 @@ Module { end: 157, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -542,7 +520,6 @@ Module { end: 163, }, id: "lower", - parenthesized: false, }, ), ), @@ -554,7 +531,6 @@ Module { end: 169, }, id: "upper", - parenthesized: false, }, ), ), @@ -578,7 +554,6 @@ Module { end: 172, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -595,7 +570,6 @@ Module { end: 178, }, id: "lower", - parenthesized: false, }, ), ), @@ -608,7 +582,6 @@ Module { end: 184, }, id: "upper", - parenthesized: false, }, ), ), @@ -631,7 +604,6 @@ Module { end: 188, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -648,7 +620,6 @@ Module { end: 194, }, id: "lower", - parenthesized: false, }, ), ), @@ -660,7 +631,6 @@ Module { end: 200, }, id: "upper", - parenthesized: false, }, ), ), @@ -672,7 +642,6 @@ Module { end: 205, }, id: "step", - parenthesized: false, }, ), ), @@ -695,7 +664,6 @@ Module { end: 208, }, id: "a", - parenthesized: false, }, ), slice: Slice( @@ -712,7 +680,6 @@ Module { end: 214, }, id: "lower", - parenthesized: false, }, ), ), @@ -737,7 +704,6 @@ Module { end: 221, }, id: "a", - parenthesized: false, }, ), slice: Tuple( @@ -754,7 +720,6 @@ Module { end: 223, }, id: "b", - parenthesized: false, }, ), Name( @@ -764,7 +729,6 @@ Module { end: 226, }, id: "c", - parenthesized: false, }, ), Name( @@ -774,7 +738,6 @@ Module { end: 229, }, id: "d", - parenthesized: false, }, ), ], @@ -797,7 +760,6 @@ Module { end: 233, }, id: "a", - parenthesized: false, }, ), slice: Tuple( @@ -814,7 +776,6 @@ Module { end: 235, }, id: "b", - parenthesized: false, }, ), Slice( @@ -831,7 +792,6 @@ Module { end: 238, }, id: "c", - parenthesized: false, }, ), ), @@ -843,7 +803,6 @@ Module { end: 240, }, id: "d", - parenthesized: false, }, ), ), @@ -857,7 +816,6 @@ Module { end: 243, }, id: "e", - parenthesized: false, }, ), ], @@ -880,7 +838,6 @@ Module { end: 248, }, id: "a", - parenthesized: false, }, ), slice: Tuple( @@ -897,7 +854,6 @@ Module { end: 250, }, id: "b", - parenthesized: false, }, ), Slice( @@ -914,7 +870,6 @@ Module { end: 253, }, id: "c", - parenthesized: false, }, ), ), @@ -926,7 +881,6 @@ Module { end: 255, }, id: "d", - parenthesized: false, }, ), ), @@ -938,7 +892,6 @@ Module { end: 257, }, id: "e", - parenthesized: false, }, ), ), @@ -951,7 +904,6 @@ Module { end: 260, }, id: "f", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap index d3fa7794..9e38a19c 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap @@ -29,7 +29,6 @@ Module { end: 72, }, id: "last_price", - parenthesized: false, }, ), ], @@ -46,7 +45,6 @@ Module { end: 78, }, id: "int", - parenthesized: false, }, ), args: [ @@ -63,7 +61,6 @@ Module { end: 92, }, id: "price_section", - parenthesized: false, }, ), slice: Constant( @@ -107,7 +104,6 @@ Module { end: 153, }, id: "ValueError", - parenthesized: false, }, ), Name( @@ -117,7 +113,6 @@ Module { end: 165, }, id: "IndexError", - parenthesized: false, }, ), ], @@ -140,7 +135,6 @@ Module { end: 182, }, id: "last_price", - parenthesized: false, }, ), ], @@ -183,7 +177,6 @@ Module { end: 208, }, id: "adj_close", - parenthesized: false, }, ), ], @@ -200,7 +193,6 @@ Module { end: 214, }, id: "int", - parenthesized: false, }, ), args: [ @@ -217,7 +209,6 @@ Module { end: 228, }, id: "price_section", - parenthesized: false, }, ), slice: Constant( @@ -261,7 +252,6 @@ Module { end: 251, }, id: "ValueError", - parenthesized: false, }, ), Name( @@ -271,7 +261,6 @@ Module { end: 263, }, id: "IndexError", - parenthesized: false, }, ), ], @@ -294,7 +283,6 @@ Module { end: 279, }, id: "adj_close", - parenthesized: false, }, ), ], @@ -337,7 +325,6 @@ Module { end: 306, }, id: "market_cap", - parenthesized: false, }, ), ], @@ -355,7 +342,6 @@ Module { end: 318, }, id: "adj_close", - parenthesized: false, }, ), right: Attribute( @@ -371,7 +357,6 @@ Module { end: 325, }, id: "self", - parenthesized: false, }, ), attr: "total_shares", @@ -396,7 +381,6 @@ Module { end: 356, }, id: "ValueError", - parenthesized: false, }, ), ), @@ -416,7 +400,6 @@ Module { end: 372, }, id: "market_cap", - parenthesized: false, }, ), ], @@ -476,7 +459,6 @@ Module { end: 409, }, id: "session", - parenthesized: false, }, ), attr: "get", @@ -490,7 +472,6 @@ Module { end: 417, }, id: "url", - parenthesized: false, }, ), ], @@ -510,7 +491,6 @@ Module { end: 447, }, id: "TRADE_DETAILS_HEADER", - parenthesized: false, }, ), }, @@ -545,7 +525,6 @@ Module { end: 473, }, id: "response", - parenthesized: false, }, ), ), @@ -577,7 +556,6 @@ Module { end: 494, }, id: "response", - parenthesized: false, }, ), attr: "status", @@ -620,7 +598,6 @@ Module { end: 528, }, id: "logger", - parenthesized: false, }, ), attr: "info", @@ -656,7 +633,6 @@ Module { end: 581, }, id: "date_obj", - parenthesized: false, }, ), conversion: -1, @@ -695,7 +671,6 @@ Module { end: 621, }, id: "retry_count", - parenthesized: false, }, ), op: Add, @@ -736,7 +711,6 @@ Module { end: 652, }, id: "asyncio", - parenthesized: false, }, ), attr: "sleep", @@ -783,7 +757,6 @@ Module { end: 696, }, id: "response", - parenthesized: false, }, ), attr: "raise_for_status", @@ -810,7 +783,6 @@ Module { end: 732, }, id: "data", - parenthesized: false, }, ), ], @@ -839,7 +811,6 @@ Module { end: 749, }, id: "response", - parenthesized: false, }, ), attr: "json", @@ -875,7 +846,6 @@ Module { end: 775, }, id: "logger", - parenthesized: false, }, ), attr: "info", @@ -911,7 +881,6 @@ Module { end: 830, }, id: "date_obj", - parenthesized: false, }, ), conversion: -1, @@ -958,7 +927,6 @@ Module { end: 871, }, id: "date_obj", - parenthesized: false, }, ), Call( @@ -980,7 +948,6 @@ Module { end: 875, }, id: "pd", - parenthesized: false, }, ), attr: "json_normalize", @@ -1000,7 +967,6 @@ Module { end: 895, }, id: "data", - parenthesized: false, }, ), slice: Constant( @@ -1060,7 +1026,6 @@ Module { end: 929, }, id: "aiohttp", - parenthesized: false, }, ), attr: "ClientError", @@ -1079,7 +1044,6 @@ Module { end: 950, }, id: "asyncio", - parenthesized: false, }, ), attr: "TimeoutError", @@ -1111,7 +1075,6 @@ Module { end: 976, }, id: "logger", - parenthesized: false, }, ), attr: "error", @@ -1147,7 +1110,6 @@ Module { end: 1013, }, id: "date_obj", - parenthesized: false, }, ), conversion: -1, @@ -1186,7 +1148,6 @@ Module { end: 1045, }, id: "retry_count", - parenthesized: false, }, ), op: Add, @@ -1227,7 +1188,6 @@ Module { end: 1068, }, id: "asyncio", - parenthesized: false, }, ), attr: "sleep", diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-2.snap index 22d41fec..4e008558 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-2.snap @@ -38,7 +38,6 @@ Module { end: 42, }, id: "Exception", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-3.snap index 10b71b2a..9d9da75e 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-3.snap @@ -38,7 +38,6 @@ Module { end: 42, }, id: "Exception", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-4.snap index 05325785..4b6577a6 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-4.snap @@ -38,7 +38,6 @@ Module { end: 42, }, id: "Exception", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-5.snap index 0ff87bd9..bcba8eff 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-5.snap @@ -38,7 +38,6 @@ Module { end: 42, }, id: "Exception", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-6.snap index 1865d6ef..6916f93f 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-6.snap @@ -38,7 +38,6 @@ Module { end: 31, }, id: "Exception", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap index 2fca4fad..a041e53a 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap @@ -23,7 +23,6 @@ Module { end: 2, }, id: "a", - parenthesized: false, }, ), Name( @@ -33,7 +32,6 @@ Module { end: 17, }, id: "b", - parenthesized: false, }, ), Name( @@ -43,7 +41,6 @@ Module { end: 20, }, id: "c", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap index 725dc185..59abf839 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap @@ -23,7 +23,6 @@ Module { end: 3, }, id: "a", - parenthesized: false, }, ), Name( @@ -33,7 +32,6 @@ Module { end: 18, }, id: "b", - parenthesized: false, }, ), Name( @@ -43,7 +41,6 @@ Module { end: 21, }, id: "c", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap index 9ca202dd..913facc6 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap @@ -23,7 +23,6 @@ Module { end: 2, }, id: "a", - parenthesized: false, }, ), Name( @@ -33,7 +32,6 @@ Module { end: 17, }, id: "b", - parenthesized: false, }, ), Name( @@ -43,7 +41,6 @@ Module { end: 36, }, id: "c", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap index 7054bcd8..657cabbf 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap @@ -16,7 +16,6 @@ Module { end: 2, }, id: "a", - parenthesized: true, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap index b031cc33..cdd04c88 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap @@ -23,7 +23,6 @@ Module { end: 2, }, id: "a", - parenthesized: false, }, ), Name( @@ -33,7 +32,6 @@ Module { end: 5, }, id: "b", - parenthesized: false, }, ), Name( @@ -43,7 +41,6 @@ Module { end: 8, }, id: "c", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap index 592151f8..20dfed35 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap @@ -23,7 +23,6 @@ Module { end: 2, }, id: "a", - parenthesized: false, }, ), Name( @@ -33,7 +32,6 @@ Module { end: 5, }, id: "b", - parenthesized: false, }, ), Name( @@ -43,7 +41,6 @@ Module { end: 8, }, id: "c", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__types_alias.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__types_alias.snap index 9662dda9..d2c28637 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__types_alias.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__types_alias.snap @@ -23,7 +23,6 @@ Module { end: 17, }, id: "int", - parenthesized: false, }, ), }, @@ -43,7 +42,6 @@ Module { end: 35, }, id: "str", - parenthesized: false, }, ), }, @@ -63,7 +61,6 @@ Module { end: 55, }, id: "float", - parenthesized: false, }, ), }, @@ -83,7 +80,6 @@ Module { end: 90, }, id: "Alias1", - parenthesized: false, }, ), }, diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-2.snap index a35a2d71..82124e7d 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-2.snap @@ -21,7 +21,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), body: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-3.snap index a2d49dcf..f7d681d0 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-3.snap @@ -21,7 +21,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), body: [ @@ -39,7 +38,6 @@ Module { end: 18, }, id: "a", - parenthesized: false, }, ), ], @@ -70,7 +68,6 @@ Module { end: 38, }, id: "b", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap index 758a8569..cbbfc2ea 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap @@ -21,7 +21,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), body: [ diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap index 7939042a..7c196c4c 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap @@ -27,7 +27,6 @@ Module { end: 6, }, id: "a", - parenthesized: false, }, ), optional_vars: None, @@ -64,7 +63,6 @@ Module { end: 20, }, id: "a", - parenthesized: false, }, ), optional_vars: Some( @@ -75,7 +73,6 @@ Module { end: 25, }, id: "b", - parenthesized: false, }, ), ), @@ -112,7 +109,6 @@ Module { end: 39, }, id: "a", - parenthesized: false, }, ), optional_vars: Some( @@ -123,7 +119,6 @@ Module { end: 44, }, id: "b", - parenthesized: false, }, ), ), @@ -140,7 +135,6 @@ Module { end: 47, }, id: "c", - parenthesized: false, }, ), optional_vars: Some( @@ -151,7 +145,6 @@ Module { end: 52, }, id: "d", - parenthesized: false, }, ), ), @@ -188,7 +181,6 @@ Module { end: 67, }, id: "a", - parenthesized: false, }, ), optional_vars: Some( @@ -199,7 +191,6 @@ Module { end: 72, }, id: "b", - parenthesized: false, }, ), ), @@ -216,7 +207,6 @@ Module { end: 75, }, id: "c", - parenthesized: false, }, ), optional_vars: Some( @@ -227,7 +217,6 @@ Module { end: 80, }, id: "d", - parenthesized: false, }, ), ), @@ -264,7 +253,6 @@ Module { end: 101, }, id: "a", - parenthesized: false, }, ), optional_vars: Some( @@ -275,7 +263,6 @@ Module { end: 106, }, id: "b", - parenthesized: false, }, ), ), @@ -312,7 +299,6 @@ Module { end: 126, }, id: "a", - parenthesized: false, }, ), optional_vars: Some( @@ -323,7 +309,6 @@ Module { end: 131, }, id: "b", - parenthesized: false, }, ), ), @@ -340,7 +325,6 @@ Module { end: 134, }, id: "c", - parenthesized: false, }, ), optional_vars: Some( @@ -351,7 +335,6 @@ Module { end: 139, }, id: "d", - parenthesized: false, }, ), ), @@ -388,7 +371,6 @@ Module { end: 173, }, id: "a", - parenthesized: false, }, ), optional_vars: Some( @@ -399,7 +381,6 @@ Module { end: 178, }, id: "b", - parenthesized: false, }, ), ), @@ -416,7 +397,6 @@ Module { end: 181, }, id: "c", - parenthesized: false, }, ), optional_vars: Some( @@ -427,7 +407,6 @@ Module { end: 187, }, id: "d", - parenthesized: false, }, ), ), @@ -448,7 +427,6 @@ Module { end: 195, }, id: "a", - parenthesized: false, }, ), ], diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap index 3d71fa16..93116500 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap @@ -23,7 +23,6 @@ Module { end: 7, }, id: "a", - parenthesized: false, }, ), ), diff --git a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap index 5a228006..5b150981 100644 --- a/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap +++ b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap @@ -22,7 +22,6 @@ Module { end: 12, }, id: "a", - parenthesized: false, }, ), },