diff --git a/parser/src/parser/parser.rs b/parser/src/parser/parser.rs index 919f412e..7a9c14b3 100644 --- a/parser/src/parser/parser.rs +++ b/parser/src/parser/parser.rs @@ -3292,6 +3292,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3307,6 +3308,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3322,6 +3324,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3337,6 +3340,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3352,6 +3356,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3367,6 +3372,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3382,6 +3388,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3397,6 +3404,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3412,6 +3420,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3428,6 +3437,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3455,6 +3465,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3470,6 +3481,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3486,6 +3498,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3502,6 +3515,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3517,6 +3531,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3541,6 +3556,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3566,6 +3582,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3582,6 +3599,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3615,6 +3633,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3637,6 +3656,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3664,6 +3684,7 @@ mod tests { insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3688,6 +3709,7 @@ else: insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3735,6 +3757,7 @@ except *Exception as e: insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3756,6 +3779,7 @@ except *Exception as e: insta::with_settings!({ description => test_case.to_string(), // the template source code + snapshot_path => "../../test_data/output/", omit_expression => true // do not include the default expression }, { assert_debug_snapshot!(program); @@ -3774,9 +3798,11 @@ except *Exception as e: ); let program = parser.parse().expect("parsing failed"); let snapshot = format!("{program:#?}"); + insta::with_settings!({ description => test_case.clone(), - omit_expression => true + omit_expression => true, + snapshot_path => "../../test_data/output/" }, { assert_snapshot!(snapshot); }); diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-10.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-10.snap deleted file mode 100644 index aaffebea..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-10.snap +++ /dev/null @@ -1,51 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a():\n ... # a" ---- -Module { - node: Node { - start: 0, - end: 20, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 20, - }, - name: "a", - args: Arguments { - node: Node { - start: 6, - end: 6, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - ExpressionStatement( - Constant( - Constant { - node: Node { - start: 13, - end: 20, - }, - value: ..., - }, - ), - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-11.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-11.snap deleted file mode 100644 index d88ee911..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-11.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# this is a comment only program" ---- -Module { - node: Node { - start: 0, - end: 33, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-12.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-12.snap deleted file mode 100644 index 9c93470e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-12.snap +++ /dev/null @@ -1,40 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "if a:\n\n\tpass" ---- -Module { - node: Node { - start: 0, - end: 12, - }, - body: [ - IfStatement( - If { - node: Node { - start: 0, - end: 12, - }, - test: Name( - Name { - node: Node { - start: 3, - end: 4, - }, - id: "a", - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 8, - end: 12, - }, - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-2.snap deleted file mode 100644 index 1529fdf3..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-2.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# a\n" ---- -Module { - node: Node { - start: 0, - end: 4, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-3.snap deleted file mode 100644 index 1b2e2550..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-3.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# a\n# b" ---- -Module { - node: Node { - start: 0, - end: 7, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-4.snap deleted file mode 100644 index 5c0a8380..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-4.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# a\n# b\n" ---- -Module { - node: Node { - start: 0, - end: 8, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-5.snap deleted file mode 100644 index 122c9905..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-5.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# a\n# b\n# c" ---- -Module { - node: Node { - start: 0, - end: 11, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-6.snap deleted file mode 100644 index 0c340207..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-6.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# a\n# b\n# c\n" ---- -Module { - node: Node { - start: 0, - end: 12, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-7.snap deleted file mode 100644 index 5f33dc4d..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-7.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# a\n# b\n# c\n# d" ---- -Module { - node: Node { - start: 0, - end: 15, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-8.snap deleted file mode 100644 index 2d2748e6..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-8.snap +++ /dev/null @@ -1,51 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a(): ... # a" ---- -Module { - node: Node { - start: 0, - end: 16, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 16, - }, - name: "a", - args: Arguments { - node: Node { - start: 6, - end: 6, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - ExpressionStatement( - Constant( - Constant { - node: Node { - start: 9, - end: 16, - }, - value: ..., - }, - ), - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-9.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-9.snap deleted file mode 100644 index dcccf24e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment-9.snap +++ /dev/null @@ -1,51 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a(): ... # a\n" ---- -Module { - node: Node { - start: 0, - end: 17, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 17, - }, - name: "a", - args: Arguments { - node: Node { - start: 6, - end: 6, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - ExpressionStatement( - Constant( - Constant { - node: Node { - start: 9, - end: 16, - }, - value: ..., - }, - ), - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment.snap deleted file mode 100644 index 584f7fa2..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comment.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# a" ---- -Module { - node: Node { - start: 0, - end: 3, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@functions.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@functions.py.snap deleted file mode 100644 index b3f4f06e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@functions.py.snap +++ /dev/null @@ -1,1553 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def _handle_ticker_index(symbol):\n ticker_index = symbols_data.get_ticker_index(symbol)\n\n if ticker_index is None:\n market_symbol = get_symbol_info(symbol)\n if market_symbol is not None:\n symbols_data.append_symbol_to_file(market_symbol)\n ticker_index = market_symbol.index\n return ticker_index\n\n\ndef _extract_ticker_client_types_data(ticker_index: str) -> List:\n url = TSE_CLIENT_TYPE_DATA_URL.format(ticker_index)\n with requests_retry_session() as session:\n response = session.get(url, timeout=5)\n data = response.text.split(';')\n return data\n\ndef common_process(df: pd.DataFrame, date: str):\n if len(df) == 0:\n return pd.DataFrame(columns=list(api_to_orderbook_mapping.keys()))\n df.rename(columns=reversed_keys, inplace=True)\n df = df.loc[:, list(api_to_orderbook_mapping.keys())]\n df[\"datetime\"] = pd.to_datetime(\n date + \" \" + df[\"datetime\"].astype(str), format=\"%Y%m%d %H%M%S\"\n )\n df = df.sort_values([\"datetime\", \"depth\"], ascending=[True, True])\n df.set_index(\"datetime\", inplace=True)\n df.drop(columns=[\"refID\"], inplace=True)\n return df\n\n" -input_file: parser/test_data/inputs/functions.py ---- -Module { - node: Node { - start: 0, - end: 1153, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 342, - }, - name: "_handle_ticker_index", - args: Arguments { - node: Node { - start: 25, - end: 31, - }, - posonlyargs: [], - args: [ - Arg { - node: Node { - start: 25, - end: 31, - }, - arg: "symbol", - annotation: None, - }, - ], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 38, - end: 90, - }, - targets: [ - Name( - Name { - node: Node { - start: 38, - end: 50, - }, - id: "ticker_index", - }, - ), - ], - value: Call( - Call { - node: Node { - start: 53, - end: 90, - }, - func: Attribute( - Attribute { - node: Node { - start: 53, - end: 82, - }, - value: Name( - Name { - node: Node { - start: 53, - end: 65, - }, - id: "symbols_data", - }, - ), - attr: "get_ticker_index", - }, - ), - args: [ - Name( - Name { - node: Node { - start: 83, - end: 89, - }, - id: "symbol", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - IfStatement( - If { - node: Node { - start: 96, - end: 320, - }, - test: Compare( - Compare { - node: Node { - start: 99, - end: 119, - }, - left: Name( - Name { - node: Node { - start: 99, - end: 111, - }, - id: "ticker_index", - }, - ), - ops: [ - Is, - ], - comparators: [ - Constant( - Constant { - node: Node { - start: 115, - end: 119, - }, - value: None, - }, - ), - ], - }, - ), - body: [ - AssignStatement( - Assign { - node: Node { - start: 129, - end: 168, - }, - targets: [ - Name( - Name { - node: Node { - start: 129, - end: 142, - }, - id: "market_symbol", - }, - ), - ], - value: Call( - Call { - node: Node { - start: 145, - end: 168, - }, - func: Name( - Name { - node: Node { - start: 145, - end: 160, - }, - id: "get_symbol_info", - }, - ), - args: [ - Name( - Name { - node: Node { - start: 161, - end: 167, - }, - id: "symbol", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - IfStatement( - If { - node: Node { - start: 177, - end: 320, - }, - test: Compare( - Compare { - node: Node { - start: 180, - end: 205, - }, - left: Name( - Name { - node: Node { - start: 180, - end: 193, - }, - id: "market_symbol", - }, - ), - ops: [ - IsNot, - ], - comparators: [ - Constant( - Constant { - node: Node { - start: 201, - end: 205, - }, - value: None, - }, - ), - ], - }, - ), - body: [ - ExpressionStatement( - Call( - Call { - node: Node { - start: 219, - end: 268, - }, - func: Attribute( - Attribute { - node: Node { - start: 219, - end: 253, - }, - value: Name( - Name { - node: Node { - start: 219, - end: 231, - }, - id: "symbols_data", - }, - ), - attr: "append_symbol_to_file", - }, - ), - args: [ - Name( - Name { - node: Node { - start: 254, - end: 267, - }, - id: "market_symbol", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ), - AssignStatement( - Assign { - node: Node { - start: 281, - end: 315, - }, - targets: [ - Name( - Name { - node: Node { - start: 281, - end: 293, - }, - id: "ticker_index", - }, - ), - ], - value: Attribute( - Attribute { - node: Node { - start: 296, - end: 315, - }, - value: Name( - Name { - node: Node { - start: 296, - end: 309, - }, - id: "market_symbol", - }, - ), - attr: "index", - }, - ), - }, - ), - ], - orelse: [], - }, - ), - ], - orelse: [], - }, - ), - Return( - Return { - node: Node { - start: 320, - end: 339, - }, - value: Some( - Name( - Name { - node: Node { - start: 327, - end: 339, - }, - id: "ticker_index", - }, - ), - ), - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - FunctionDef( - FunctionDef { - node: Node { - start: 342, - end: 610, - }, - name: "_extract_ticker_client_types_data", - args: Arguments { - node: Node { - start: 380, - end: 397, - }, - posonlyargs: [], - args: [ - Arg { - node: Node { - start: 380, - end: 397, - }, - arg: "ticker_index", - annotation: Some( - Name( - Name { - node: Node { - start: 394, - end: 397, - }, - id: "str", - }, - ), - ), - }, - ], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 412, - end: 463, - }, - targets: [ - Name( - Name { - node: Node { - start: 412, - end: 415, - }, - id: "url", - }, - ), - ], - value: Call( - Call { - node: Node { - start: 418, - end: 463, - }, - func: Attribute( - Attribute { - node: Node { - start: 418, - end: 449, - }, - value: Name( - Name { - node: Node { - start: 418, - end: 442, - }, - id: "TSE_CLIENT_TYPE_DATA_URL", - }, - ), - attr: "format", - }, - ), - args: [ - Name( - Name { - node: Node { - start: 450, - end: 462, - }, - id: "ticker_index", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - WithStatement( - With { - node: Node { - start: 468, - end: 561, - }, - items: [ - WithItem { - node: Node { - start: 473, - end: 508, - }, - context_expr: Call( - Call { - node: Node { - start: 473, - end: 497, - }, - func: Name( - Name { - node: Node { - start: 473, - end: 495, - }, - id: "requests_retry_session", - }, - ), - args: [], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 501, - end: 508, - }, - id: "session", - }, - ), - ), - }, - ], - body: [ - AssignStatement( - Assign { - node: Node { - start: 518, - end: 556, - }, - targets: [ - Name( - Name { - node: Node { - start: 518, - end: 526, - }, - id: "response", - }, - ), - ], - value: Call( - Call { - node: Node { - start: 529, - end: 556, - }, - func: Attribute( - Attribute { - node: Node { - start: 529, - end: 540, - }, - value: Name( - Name { - node: Node { - start: 529, - end: 536, - }, - id: "session", - }, - ), - attr: "get", - }, - ), - args: [ - Name( - Name { - node: Node { - start: 541, - end: 544, - }, - id: "url", - }, - ), - ], - keywords: [ - Keyword { - node: Node { - start: 546, - end: 555, - }, - arg: Some( - "timeout", - ), - value: Constant( - Constant { - node: Node { - start: 554, - end: 555, - }, - value: 5, - }, - ), - }, - ], - starargs: None, - kwargs: None, - }, - ), - }, - ), - ], - }, - ), - AssignStatement( - Assign { - node: Node { - start: 561, - end: 592, - }, - targets: [ - Name( - Name { - node: Node { - start: 561, - end: 565, - }, - id: "data", - }, - ), - ], - value: Call( - Call { - node: Node { - start: 568, - end: 592, - }, - func: Attribute( - Attribute { - node: Node { - start: 568, - end: 587, - }, - value: Attribute( - Attribute { - node: Node { - start: 568, - end: 581, - }, - value: Name( - Name { - node: Node { - start: 568, - end: 576, - }, - id: "response", - }, - ), - attr: "text", - }, - ), - attr: "split", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 588, - end: 591, - }, - value: ";", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - Return( - Return { - node: Node { - start: 597, - end: 608, - }, - value: Some( - Name( - Name { - node: Node { - start: 604, - end: 608, - }, - id: "data", - }, - ), - ), - }, - ), - ], - decorator_list: [], - returns: Some( - Name( - Name { - node: Node { - start: 402, - end: 406, - }, - id: "List", - }, - ), - ), - type_comment: None, - type_params: [], - }, - ), - FunctionDef( - FunctionDef { - node: Node { - start: 610, - end: 1153, - }, - name: "common_process", - args: Arguments { - node: Node { - start: 629, - end: 656, - }, - posonlyargs: [], - args: [ - Arg { - node: Node { - start: 629, - end: 645, - }, - arg: "df", - annotation: Some( - Attribute( - Attribute { - node: Node { - start: 633, - end: 645, - }, - value: Name( - Name { - node: Node { - start: 633, - end: 635, - }, - id: "pd", - }, - ), - attr: "DataFrame", - }, - ), - ), - }, - Arg { - node: Node { - start: 647, - end: 656, - }, - arg: "date", - annotation: Some( - Name( - Name { - node: Node { - start: 653, - end: 656, - }, - id: "str", - }, - ), - ), - }, - ], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - IfStatement( - If { - node: Node { - start: 663, - end: 759, - }, - test: Compare( - Compare { - node: Node { - start: 666, - end: 678, - }, - left: Call( - Call { - node: Node { - start: 666, - end: 673, - }, - func: Name( - Name { - node: Node { - start: 666, - end: 669, - }, - id: "len", - }, - ), - args: [ - Name( - Name { - node: Node { - start: 670, - end: 672, - }, - id: "df", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ops: [ - Eq, - ], - comparators: [ - Constant( - Constant { - node: Node { - start: 677, - end: 678, - }, - value: 0, - }, - ), - ], - }, - ), - body: [ - Return( - Return { - node: Node { - start: 688, - end: 754, - }, - value: Some( - Call( - Call { - node: Node { - start: 695, - end: 754, - }, - func: Attribute( - Attribute { - node: Node { - start: 695, - end: 707, - }, - value: Name( - Name { - node: Node { - start: 695, - end: 697, - }, - id: "pd", - }, - ), - attr: "DataFrame", - }, - ), - args: [], - keywords: [ - Keyword { - node: Node { - start: 708, - end: 753, - }, - arg: Some( - "columns", - ), - value: Call( - Call { - node: Node { - start: 716, - end: 753, - }, - func: Name( - Name { - node: Node { - start: 716, - end: 720, - }, - id: "list", - }, - ), - args: [ - Call( - Call { - node: Node { - start: 721, - end: 752, - }, - func: Attribute( - Attribute { - node: Node { - start: 721, - end: 750, - }, - value: Name( - Name { - node: Node { - start: 721, - end: 745, - }, - id: "api_to_orderbook_mapping", - }, - ), - attr: "keys", - }, - ), - args: [], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ], - starargs: None, - kwargs: None, - }, - ), - ), - }, - ), - ], - orelse: [], - }, - ), - ExpressionStatement( - Call( - Call { - node: Node { - start: 759, - end: 805, - }, - func: Attribute( - Attribute { - node: Node { - start: 759, - end: 768, - }, - value: Name( - Name { - node: Node { - start: 759, - end: 761, - }, - id: "df", - }, - ), - attr: "rename", - }, - ), - args: [], - keywords: [ - Keyword { - node: Node { - start: 769, - end: 790, - }, - arg: Some( - "columns", - ), - value: Name( - Name { - node: Node { - start: 777, - end: 790, - }, - id: "reversed_keys", - }, - ), - }, - Keyword { - node: Node { - start: 792, - end: 804, - }, - arg: Some( - "inplace", - ), - value: Constant( - Constant { - node: Node { - start: 800, - end: 804, - }, - value: true, - }, - ), - }, - ], - starargs: None, - kwargs: None, - }, - ), - ), - AssignStatement( - Assign { - node: Node { - start: 810, - end: 863, - }, - targets: [ - Name( - Name { - node: Node { - start: 810, - end: 812, - }, - id: "df", - }, - ), - ], - value: Subscript( - Subscript { - node: Node { - start: 821, - end: 863, - }, - value: Attribute( - Attribute { - node: Node { - start: 815, - end: 821, - }, - value: Name( - Name { - node: Node { - start: 815, - end: 817, - }, - id: "df", - }, - ), - attr: "loc", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 822, - end: 863, - }, - elements: [ - Slice( - Slice { - node: Node { - start: 822, - end: 823, - }, - lower: None, - upper: None, - step: None, - }, - ), - Call( - Call { - node: Node { - start: 825, - end: 862, - }, - func: Name( - Name { - node: Node { - start: 825, - end: 829, - }, - id: "list", - }, - ), - args: [ - Call( - Call { - node: Node { - start: 830, - end: 861, - }, - func: Attribute( - Attribute { - node: Node { - start: 830, - end: 859, - }, - value: Name( - Name { - node: Node { - start: 830, - end: 854, - }, - id: "api_to_orderbook_mapping", - }, - ), - attr: "keys", - }, - ), - args: [], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ], - }, - ), - }, - ), - }, - ), - AssignStatement( - Assign { - node: Node { - start: 868, - end: 978, - }, - targets: [ - Subscript( - Subscript { - node: Node { - start: 868, - end: 882, - }, - value: Name( - Name { - node: Node { - start: 868, - end: 870, - }, - id: "df", - }, - ), - slice: Constant( - Constant { - node: Node { - start: 871, - end: 881, - }, - value: "datetime", - }, - ), - }, - ), - ], - value: Call( - Call { - node: Node { - start: 885, - end: 978, - }, - func: Attribute( - Attribute { - node: Node { - start: 885, - end: 899, - }, - value: Name( - Name { - node: Node { - start: 885, - end: 887, - }, - id: "pd", - }, - ), - attr: "to_datetime", - }, - ), - args: [ - BinOp( - BinOp { - node: Node { - start: 909, - end: 948, - }, - op: Add, - left: BinOp( - BinOp { - node: Node { - start: 909, - end: 919, - }, - op: Add, - left: Name( - Name { - node: Node { - start: 909, - end: 913, - }, - id: "date", - }, - ), - right: Constant( - Constant { - node: Node { - start: 916, - end: 919, - }, - value: " ", - }, - ), - }, - ), - right: Call( - Call { - node: Node { - start: 936, - end: 948, - }, - func: Attribute( - Attribute { - node: Node { - start: 936, - end: 943, - }, - value: Subscript( - Subscript { - node: Node { - start: 922, - end: 936, - }, - value: Name( - Name { - node: Node { - start: 922, - end: 924, - }, - id: "df", - }, - ), - slice: Constant( - Constant { - node: Node { - start: 925, - end: 935, - }, - value: "datetime", - }, - ), - }, - ), - attr: "astype", - }, - ), - args: [ - Name( - Name { - node: Node { - start: 944, - end: 947, - }, - id: "str", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - ], - keywords: [ - Keyword { - node: Node { - start: 950, - end: 972, - }, - arg: Some( - "format", - ), - value: Constant( - Constant { - node: Node { - start: 957, - end: 972, - }, - value: "%Y%m%d %H%M%S", - }, - ), - }, - ], - starargs: None, - kwargs: None, - }, - ), - }, - ), - AssignStatement( - Assign { - node: Node { - start: 983, - end: 1049, - }, - targets: [ - Name( - Name { - node: Node { - start: 983, - end: 985, - }, - id: "df", - }, - ), - ], - value: Call( - Call { - node: Node { - start: 988, - end: 1049, - }, - func: Attribute( - Attribute { - node: Node { - start: 988, - end: 1002, - }, - value: Name( - Name { - node: Node { - start: 988, - end: 990, - }, - id: "df", - }, - ), - attr: "sort_values", - }, - ), - args: [ - List( - List { - node: Node { - start: 1003, - end: 1024, - }, - elements: [ - Constant( - Constant { - node: Node { - start: 1004, - end: 1014, - }, - value: "datetime", - }, - ), - Constant( - Constant { - node: Node { - start: 1016, - end: 1023, - }, - value: "depth", - }, - ), - ], - }, - ), - ], - keywords: [ - Keyword { - node: Node { - start: 1026, - end: 1048, - }, - arg: Some( - "ascending", - ), - value: List( - List { - node: Node { - start: 1036, - end: 1048, - }, - elements: [ - Constant( - Constant { - node: Node { - start: 1037, - end: 1041, - }, - value: true, - }, - ), - Constant( - Constant { - node: Node { - start: 1043, - end: 1047, - }, - value: true, - }, - ), - ], - }, - ), - }, - ], - starargs: None, - kwargs: None, - }, - ), - }, - ), - ExpressionStatement( - Call( - Call { - node: Node { - start: 1054, - end: 1092, - }, - func: Attribute( - Attribute { - node: Node { - start: 1054, - end: 1066, - }, - value: Name( - Name { - node: Node { - start: 1054, - end: 1056, - }, - id: "df", - }, - ), - attr: "set_index", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 1067, - end: 1077, - }, - value: "datetime", - }, - ), - ], - keywords: [ - Keyword { - node: Node { - start: 1079, - end: 1091, - }, - arg: Some( - "inplace", - ), - value: Constant( - Constant { - node: Node { - start: 1087, - end: 1091, - }, - value: true, - }, - ), - }, - ], - starargs: None, - kwargs: None, - }, - ), - ), - ExpressionStatement( - Call( - Call { - node: Node { - start: 1097, - end: 1137, - }, - func: Attribute( - Attribute { - node: Node { - start: 1097, - end: 1104, - }, - value: Name( - Name { - node: Node { - start: 1097, - end: 1099, - }, - id: "df", - }, - ), - attr: "drop", - }, - ), - args: [], - keywords: [ - Keyword { - node: Node { - start: 1105, - end: 1122, - }, - arg: Some( - "columns", - ), - value: List( - List { - node: Node { - start: 1113, - end: 1122, - }, - elements: [ - Constant( - Constant { - node: Node { - start: 1114, - end: 1121, - }, - value: "refID", - }, - ), - ], - }, - ), - }, - Keyword { - node: Node { - start: 1124, - end: 1136, - }, - arg: Some( - "inplace", - ), - value: Constant( - Constant { - node: Node { - start: 1132, - end: 1136, - }, - value: true, - }, - ), - }, - ], - starargs: None, - kwargs: None, - }, - ), - ), - Return( - Return { - node: Node { - start: 1142, - end: 1151, - }, - value: Some( - Name( - Name { - node: Node { - start: 1149, - end: 1151, - }, - id: "df", - }, - ), - ), - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@if.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@if.py.snap deleted file mode 100644 index 7ea207e6..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@if.py.snap +++ /dev/null @@ -1,163 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "if self.adjust:\n if True:\n print(\"adjust is True and adjusted_daily_records_csv_path exists\")\n else:\n print(\"adjust is True\")\nelse:\n print(\"adjust is False\")\n\n" -input_file: parser/test_data/inputs/if.py ---- -Module { - node: Node { - start: 0, - end: 182, - }, - body: [ - IfStatement( - If { - node: Node { - start: 0, - end: 182, - }, - test: Attribute( - Attribute { - node: Node { - start: 3, - end: 14, - }, - value: Name( - Name { - node: Node { - start: 3, - end: 7, - }, - id: "self", - }, - ), - attr: "adjust", - }, - ), - body: [ - IfStatement( - If { - node: Node { - start: 20, - end: 146, - }, - test: Constant( - Constant { - node: Node { - start: 23, - end: 27, - }, - value: true, - }, - ), - body: [ - ExpressionStatement( - Call( - Call { - node: Node { - start: 37, - end: 103, - }, - func: Name( - Name { - node: Node { - start: 37, - end: 42, - }, - id: "print", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 43, - end: 102, - }, - value: "adjust is True and adjusted_daily_records_csv_path exists", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ), - ], - orelse: [ - ExpressionStatement( - Call( - Call { - node: Node { - start: 122, - end: 145, - }, - func: Name( - Name { - node: Node { - start: 122, - end: 127, - }, - id: "print", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 128, - end: 144, - }, - value: "adjust is True", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ), - ], - }, - ), - ], - orelse: [ - ExpressionStatement( - Call( - Call { - node: Node { - start: 156, - end: 180, - }, - func: Name( - Name { - node: Node { - start: 156, - end: 161, - }, - id: "print", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 162, - end: 179, - }, - value: "adjust is False", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@indentation.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@indentation.py-2.snap deleted file mode 100644 index 17b29af0..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@indentation.py-2.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# Unindent does not match any outer indentation level\nif True:\n pass\n pass\n" -input_file: parser/test_data/inputs/indentation.py ---- -[ - InvalidSyntax { - msg: "Unindent does not match any outer indentation level", - input: "", - advice: "", - span: ( - 76, - 80, - ), - }, -] diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@indentation.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@indentation.py.snap deleted file mode 100644 index 48ae9800..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@indentation.py.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# Unindent does not match any outer indentation level\nif True:\n pass\n pass\n" -input_file: parser/test_data/inputs/indentation.py ---- -Module { - node: Node { - start: 0, - end: 80, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@separate_statements.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@separate_statements.py-2.snap deleted file mode 100644 index 1b2520e8..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@separate_statements.py-2.snap +++ /dev/null @@ -1,25 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# Test case to check that we return correct error when two python statements are on the same line\n\ndef foo():\n x = 1; y = 2\n return x + y\n\ndef bar():\n x = 1 y = 2\n return x + y\n\na = 1 b = 2\n" -input_file: parser/test_data/inputs/separate_statements.py ---- -[ - InvalidSyntax { - msg: "Statement does not end in new line or semicolon", - input: " x = 1", - advice: "Split the statements into two separate lines or add a semicolon", - span: ( - 160, - 165, - ), - }, - InvalidSyntax { - msg: "Statement does not end in new line or semicolon", - input: "a = 1", - advice: "Split the statements into two separate lines or add a semicolon", - span: ( - 190, - 195, - ), - }, -] diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@separate_statements.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@separate_statements.py.snap deleted file mode 100644 index 6adadd9b..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@separate_statements.py.snap +++ /dev/null @@ -1,311 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# Test case to check that we return correct error when two python statements are on the same line\n\ndef foo():\n x = 1; y = 2\n return x + y\n\ndef bar():\n x = 1 y = 2\n return x + y\n\na = 1 b = 2\n" -input_file: parser/test_data/inputs/separate_statements.py ---- -Module { - node: Node { - start: 0, - end: 203, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 99, - end: 145, - }, - name: "foo", - args: Arguments { - node: Node { - start: 107, - end: 107, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 114, - end: 119, - }, - targets: [ - Name( - Name { - node: Node { - start: 114, - end: 115, - }, - id: "x", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 118, - end: 119, - }, - value: 1, - }, - ), - }, - ), - AssignStatement( - Assign { - node: Node { - start: 121, - end: 126, - }, - targets: [ - Name( - Name { - node: Node { - start: 121, - end: 122, - }, - id: "y", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 125, - end: 126, - }, - value: 2, - }, - ), - }, - ), - Return( - Return { - node: Node { - start: 131, - end: 143, - }, - value: Some( - BinOp( - BinOp { - node: Node { - start: 138, - end: 143, - }, - op: Add, - left: Name( - Name { - node: Node { - start: 138, - end: 139, - }, - id: "x", - }, - ), - right: Name( - Name { - node: Node { - start: 142, - end: 143, - }, - id: "y", - }, - ), - }, - ), - ), - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - FunctionDef( - FunctionDef { - node: Node { - start: 145, - end: 190, - }, - name: "bar", - args: Arguments { - node: Node { - start: 153, - end: 153, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 160, - end: 165, - }, - targets: [ - Name( - Name { - node: Node { - start: 160, - end: 161, - }, - id: "x", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 164, - end: 165, - }, - value: 1, - }, - ), - }, - ), - AssignStatement( - Assign { - node: Node { - start: 166, - end: 171, - }, - targets: [ - Name( - Name { - node: Node { - start: 166, - end: 167, - }, - id: "y", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 170, - end: 171, - }, - value: 2, - }, - ), - }, - ), - Return( - Return { - node: Node { - start: 176, - end: 188, - }, - value: Some( - BinOp( - BinOp { - node: Node { - start: 183, - end: 188, - }, - op: Add, - left: Name( - Name { - node: Node { - start: 183, - end: 184, - }, - id: "x", - }, - ), - right: Name( - Name { - node: Node { - start: 187, - end: 188, - }, - id: "y", - }, - ), - }, - ), - ), - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - AssignStatement( - Assign { - node: Node { - start: 190, - end: 195, - }, - targets: [ - Name( - Name { - node: Node { - start: 190, - end: 191, - }, - id: "a", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 194, - end: 195, - }, - value: 1, - }, - ), - }, - ), - AssignStatement( - Assign { - node: Node { - start: 197, - end: 202, - }, - targets: [ - Name( - Name { - node: Node { - start: 197, - end: 198, - }, - id: "b", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 201, - end: 202, - }, - value: 2, - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@try.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@try.py.snap deleted file mode 100644 index 8b13434a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__complete@try.py.snap +++ /dev/null @@ -1,1194 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# in some cases last price or adj price is undefined\ntry:\n last_price = int(price_section[2])\n# when instead of number value is `F`\nexcept (ValueError, IndexError):\n last_price = None\ntry:\n adj_close = int(price_section[3])\nexcept (ValueError, IndexError):\n adj_close = None\ntry:\n market_cap = adj_close * self.total_shares\nexcept ValueError:\n market_cap = None\n\n\ntry:\n async with session.get(\n url, headers=TRADE_DETAILS_HEADER, timeout=100\n ) as response:\n if response.status == 503:\n logger.info(\n f\"Received 503 Service Unavailable on {date_obj}. Retrying...\"\n )\n retry_count += 1\n await asyncio.sleep(1)\n else:\n response.raise_for_status()\n data = await response.json()\n logger.info(\n f\"Successfully fetched trade details on {date_obj} from tse\"\n )\n return [date_obj, pd.json_normalize(data[\"tradeHistory\"])]\nexcept (aiohttp.ClientError, asyncio.TimeoutError):\n logger.error(f\"Request failed for {date_obj}. Retrying...\")\n retry_count += 1\n await asyncio.sleep(1)\n" -input_file: parser/test_data/inputs/try.py ---- -Module { - node: Node { - start: 0, - end: 1152, - }, - body: [ - TryStatement( - Try { - node: Node { - start: 53, - end: 190, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 62, - end: 96, - }, - targets: [ - Name( - Name { - node: Node { - start: 62, - end: 72, - }, - id: "last_price", - }, - ), - ], - value: Call( - Call { - node: Node { - start: 75, - end: 96, - }, - func: Name( - Name { - node: Node { - start: 75, - end: 78, - }, - id: "int", - }, - ), - args: [ - Subscript( - Subscript { - node: Node { - start: 79, - end: 95, - }, - value: Name( - Name { - node: Node { - start: 79, - end: 92, - }, - id: "price_section", - }, - ), - slice: Constant( - Constant { - node: Node { - start: 93, - end: 94, - }, - value: 2, - }, - ), - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - ], - handlers: [ - ExceptHandler { - node: Node { - start: 135, - end: 190, - }, - typ: Some( - Tuple( - Tuple { - node: Node { - start: 142, - end: 165, - }, - elements: [ - Name( - Name { - node: Node { - start: 143, - end: 153, - }, - id: "ValueError", - }, - ), - Name( - Name { - node: Node { - start: 155, - end: 165, - }, - id: "IndexError", - }, - ), - ], - }, - ), - ), - name: None, - body: [ - AssignStatement( - Assign { - node: Node { - start: 172, - end: 189, - }, - targets: [ - Name( - Name { - node: Node { - start: 172, - end: 182, - }, - id: "last_price", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 185, - end: 189, - }, - value: None, - }, - ), - }, - ), - ], - }, - ], - orelse: [], - finalbody: [], - }, - ), - TryStatement( - Try { - node: Node { - start: 190, - end: 287, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 199, - end: 232, - }, - targets: [ - Name( - Name { - node: Node { - start: 199, - end: 208, - }, - id: "adj_close", - }, - ), - ], - value: Call( - Call { - node: Node { - start: 211, - end: 232, - }, - func: Name( - Name { - node: Node { - start: 211, - end: 214, - }, - id: "int", - }, - ), - args: [ - Subscript( - Subscript { - node: Node { - start: 215, - end: 231, - }, - value: Name( - Name { - node: Node { - start: 215, - end: 228, - }, - id: "price_section", - }, - ), - slice: Constant( - Constant { - node: Node { - start: 229, - end: 230, - }, - value: 3, - }, - ), - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - ], - handlers: [ - ExceptHandler { - node: Node { - start: 233, - end: 287, - }, - typ: Some( - Tuple( - Tuple { - node: Node { - start: 240, - end: 263, - }, - elements: [ - Name( - Name { - node: Node { - start: 241, - end: 251, - }, - id: "ValueError", - }, - ), - Name( - Name { - node: Node { - start: 253, - end: 263, - }, - id: "IndexError", - }, - ), - ], - }, - ), - ), - name: None, - body: [ - AssignStatement( - Assign { - node: Node { - start: 270, - end: 286, - }, - targets: [ - Name( - Name { - node: Node { - start: 270, - end: 279, - }, - id: "adj_close", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 282, - end: 286, - }, - value: None, - }, - ), - }, - ), - ], - }, - ], - orelse: [], - finalbody: [], - }, - ), - TryStatement( - Try { - node: Node { - start: 287, - end: 382, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 296, - end: 338, - }, - targets: [ - Name( - Name { - node: Node { - start: 296, - end: 306, - }, - id: "market_cap", - }, - ), - ], - value: BinOp( - BinOp { - node: Node { - start: 309, - end: 338, - }, - op: Mult, - left: Name( - Name { - node: Node { - start: 309, - end: 318, - }, - id: "adj_close", - }, - ), - right: Attribute( - Attribute { - node: Node { - start: 321, - end: 338, - }, - value: Name( - Name { - node: Node { - start: 321, - end: 325, - }, - id: "self", - }, - ), - attr: "total_shares", - }, - ), - }, - ), - }, - ), - ], - handlers: [ - ExceptHandler { - node: Node { - start: 339, - end: 382, - }, - typ: Some( - Name( - Name { - node: Node { - start: 346, - end: 356, - }, - id: "ValueError", - }, - ), - ), - name: None, - body: [ - AssignStatement( - Assign { - node: Node { - start: 362, - end: 379, - }, - targets: [ - Name( - Name { - node: Node { - start: 362, - end: 372, - }, - id: "market_cap", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 375, - end: 379, - }, - value: None, - }, - ), - }, - ), - ], - }, - ], - orelse: [], - finalbody: [], - }, - ), - TryStatement( - Try { - node: Node { - start: 382, - end: 1152, - }, - body: [ - AsyncWithStatement( - AsyncWith { - node: Node { - start: 391, - end: 988, - }, - items: [ - WithItem { - node: Node { - start: 402, - end: 487, - }, - context_expr: Call( - Call { - node: Node { - start: 402, - end: 475, - }, - func: Attribute( - Attribute { - node: Node { - start: 402, - end: 413, - }, - value: Name( - Name { - node: Node { - start: 402, - end: 409, - }, - id: "session", - }, - ), - attr: "get", - }, - ), - args: [ - Name( - Name { - node: Node { - start: 423, - end: 426, - }, - id: "url", - }, - ), - ], - keywords: [ - Keyword { - node: Node { - start: 428, - end: 456, - }, - arg: Some( - "headers", - ), - value: Name( - Name { - node: Node { - start: 436, - end: 456, - }, - id: "TRADE_DETAILS_HEADER", - }, - ), - }, - Keyword { - node: Node { - start: 458, - end: 469, - }, - arg: Some( - "timeout", - ), - value: Constant( - Constant { - node: Node { - start: 466, - end: 469, - }, - value: 100, - }, - ), - }, - ], - starargs: None, - kwargs: None, - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 479, - end: 487, - }, - id: "response", - }, - ), - ), - }, - ], - body: [ - IfStatement( - If { - node: Node { - start: 497, - end: 988, - }, - test: Compare( - Compare { - node: Node { - start: 500, - end: 522, - }, - left: Attribute( - Attribute { - node: Node { - start: 500, - end: 515, - }, - value: Name( - Name { - node: Node { - start: 500, - end: 508, - }, - id: "response", - }, - ), - attr: "status", - }, - ), - ops: [ - Eq, - ], - comparators: [ - Constant( - Constant { - node: Node { - start: 519, - end: 522, - }, - value: 503, - }, - ), - ], - }, - ), - body: [ - ExpressionStatement( - Call( - Call { - node: Node { - start: 536, - end: 641, - }, - func: Attribute( - Attribute { - node: Node { - start: 536, - end: 547, - }, - value: Name( - Name { - node: Node { - start: 536, - end: 542, - }, - id: "logger", - }, - ), - attr: "info", - }, - ), - args: [ - JoinedStr( - JoinedStr { - node: Node { - start: 565, - end: 627, - }, - values: [ - Constant( - Constant { - node: Node { - start: 565, - end: 603, - }, - value: "Received 503 Service Unavailable on ", - }, - ), - Name( - Name { - node: Node { - start: 604, - end: 612, - }, - id: "date_obj", - }, - ), - Constant( - Constant { - node: Node { - start: 565, - end: 626, - }, - value: ". Retrying...", - }, - ), - ], - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ), - AugAssignStatement( - AugAssign { - node: Node { - start: 654, - end: 670, - }, - target: Name( - Name { - node: Node { - start: 654, - end: 665, - }, - id: "retry_count", - }, - ), - op: Add, - value: Constant( - Constant { - node: Node { - start: 669, - end: 670, - }, - value: 1, - }, - ), - }, - ), - ExpressionStatement( - Await( - Await { - node: Node { - start: 683, - end: 705, - }, - value: Call( - Call { - node: Node { - start: 689, - end: 705, - }, - func: Attribute( - Attribute { - node: Node { - start: 689, - end: 702, - }, - value: Name( - Name { - node: Node { - start: 689, - end: 696, - }, - id: "asyncio", - }, - ), - attr: "sleep", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 703, - end: 704, - }, - value: 1, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - ), - ], - orelse: [ - ExpressionStatement( - Call( - Call { - node: Node { - start: 732, - end: 759, - }, - func: Attribute( - Attribute { - node: Node { - start: 732, - end: 757, - }, - value: Name( - Name { - node: Node { - start: 732, - end: 740, - }, - id: "response", - }, - ), - attr: "raise_for_status", - }, - ), - args: [], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ), - AssignStatement( - Assign { - node: Node { - start: 772, - end: 800, - }, - targets: [ - Name( - Name { - node: Node { - start: 772, - end: 776, - }, - id: "data", - }, - ), - ], - value: Await( - Await { - node: Node { - start: 779, - end: 800, - }, - value: Call( - Call { - node: Node { - start: 785, - end: 800, - }, - func: Attribute( - Attribute { - node: Node { - start: 785, - end: 798, - }, - value: Name( - Name { - node: Node { - start: 785, - end: 793, - }, - id: "response", - }, - ), - attr: "json", - }, - ), - args: [], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - }, - ), - ExpressionStatement( - Call( - Call { - node: Node { - start: 813, - end: 916, - }, - func: Attribute( - Attribute { - node: Node { - start: 813, - end: 824, - }, - value: Name( - Name { - node: Node { - start: 813, - end: 819, - }, - id: "logger", - }, - ), - attr: "info", - }, - ), - args: [ - JoinedStr( - JoinedStr { - node: Node { - start: 842, - end: 902, - }, - values: [ - Constant( - Constant { - node: Node { - start: 842, - end: 882, - }, - value: "Successfully fetched trade details on ", - }, - ), - Name( - Name { - node: Node { - start: 883, - end: 891, - }, - id: "date_obj", - }, - ), - Constant( - Constant { - node: Node { - start: 842, - end: 901, - }, - value: " from tse", - }, - ), - ], - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ), - Return( - Return { - node: Node { - start: 929, - end: 988, - }, - value: Some( - List( - List { - node: Node { - start: 936, - end: 988, - }, - elements: [ - Name( - Name { - node: Node { - start: 937, - end: 945, - }, - id: "date_obj", - }, - ), - Call( - Call { - node: Node { - start: 947, - end: 986, - }, - func: Attribute( - Attribute { - node: Node { - start: 947, - end: 964, - }, - value: Name( - Name { - node: Node { - start: 947, - end: 949, - }, - id: "pd", - }, - ), - attr: "json_normalize", - }, - ), - args: [ - Subscript( - Subscript { - node: Node { - start: 965, - end: 985, - }, - value: Name( - Name { - node: Node { - start: 965, - end: 969, - }, - id: "data", - }, - ), - slice: Constant( - Constant { - node: Node { - start: 970, - end: 984, - }, - value: "tradeHistory", - }, - ), - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ], - }, - ), - ), - }, - ), - ], - }, - ), - ], - }, - ), - ], - handlers: [ - ExceptHandler { - node: Node { - start: 988, - end: 1152, - }, - typ: Some( - Tuple( - Tuple { - node: Node { - start: 995, - end: 1037, - }, - elements: [ - Attribute( - Attribute { - node: Node { - start: 996, - end: 1015, - }, - value: Name( - Name { - node: Node { - start: 996, - end: 1003, - }, - id: "aiohttp", - }, - ), - attr: "ClientError", - }, - ), - Attribute( - Attribute { - node: Node { - start: 1017, - end: 1037, - }, - value: Name( - Name { - node: Node { - start: 1017, - end: 1024, - }, - id: "asyncio", - }, - ), - attr: "TimeoutError", - }, - ), - ], - }, - ), - ), - name: None, - body: [ - ExpressionStatement( - Call( - Call { - node: Node { - start: 1044, - end: 1103, - }, - func: Attribute( - Attribute { - node: Node { - start: 1044, - end: 1056, - }, - value: Name( - Name { - node: Node { - start: 1044, - end: 1050, - }, - id: "logger", - }, - ), - attr: "error", - }, - ), - args: [ - JoinedStr( - JoinedStr { - node: Node { - start: 1057, - end: 1102, - }, - values: [ - Constant( - Constant { - node: Node { - start: 1057, - end: 1078, - }, - value: "Request failed for ", - }, - ), - Name( - Name { - node: Node { - start: 1079, - end: 1087, - }, - id: "date_obj", - }, - ), - Constant( - Constant { - node: Node { - start: 1057, - end: 1101, - }, - value: ". Retrying...", - }, - ), - ], - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ), - AugAssignStatement( - AugAssign { - node: Node { - start: 1108, - end: 1124, - }, - target: Name( - Name { - node: Node { - start: 1108, - end: 1119, - }, - id: "retry_count", - }, - ), - op: Add, - value: Constant( - Constant { - node: Node { - start: 1123, - end: 1124, - }, - value: 1, - }, - ), - }, - ), - ExpressionStatement( - Await( - Await { - node: Node { - start: 1129, - end: 1151, - }, - value: Call( - Call { - node: Node { - start: 1135, - end: 1151, - }, - func: Attribute( - Attribute { - node: Node { - start: 1135, - end: 1148, - }, - value: Name( - Name { - node: Node { - start: 1135, - end: 1142, - }, - id: "asyncio", - }, - ), - attr: "sleep", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 1149, - end: 1150, - }, - value: 1, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - }, - ), - ), - ], - }, - ], - orelse: [], - finalbody: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__from_import-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__from_import-2.snap deleted file mode 100644 index a7915fcc..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__from_import-2.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "import a\nimport a as b\nimport a.b\nimport a.b as c\nimport a.b.c\nfrom a import b\nfrom a import b as c\nfrom a.b import c\nfrom a.b import c as d\nfrom ...a import b\nfrom ....a import b\nfrom .....a import b\nfrom ......a import b\nfrom .......a import b\nfrom ...\n" ---- -[ - InvalidSyntax { - msg: "Expected one of \"Identifier, Mul, LeftParen, \" but found Eof", - input: "", - advice: "Use * for importing everything or use () to specify names to import or specify the name you want to import", - span: ( - 246, - 255, - ), - }, -] diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-2.snap deleted file mode 100644 index a0c691da..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-2.snap +++ /dev/null @@ -1,40 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "if a:\n pass" ---- -Module { - node: Node { - start: 0, - end: 14, - }, - body: [ - IfStatement( - If { - node: Node { - start: 0, - end: 14, - }, - test: Name( - Name { - node: Node { - start: 3, - end: 4, - }, - id: "a", - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 10, - end: 14, - }, - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-3.snap deleted file mode 100644 index b1e26658..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-3.snap +++ /dev/null @@ -1,108 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "if a:\n a = 1\nif a:\n b = 1\n\n" ---- -Module { - node: Node { - start: 0, - end: 41, - }, - body: [ - IfStatement( - If { - node: Node { - start: 0, - end: 20, - }, - test: Name( - Name { - node: Node { - start: 3, - end: 4, - }, - id: "a", - }, - ), - body: [ - AssignStatement( - Assign { - node: Node { - start: 14, - end: 19, - }, - targets: [ - Name( - Name { - node: Node { - start: 14, - end: 15, - }, - id: "a", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 18, - end: 19, - }, - value: 1, - }, - ), - }, - ), - ], - orelse: [], - }, - ), - IfStatement( - If { - node: Node { - start: 20, - end: 41, - }, - test: Name( - Name { - node: Node { - start: 23, - end: 24, - }, - id: "a", - }, - ), - body: [ - AssignStatement( - Assign { - node: Node { - start: 34, - end: 39, - }, - targets: [ - Name( - Name { - node: Node { - start: 34, - end: 35, - }, - id: "b", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 38, - end: 39, - }, - value: 1, - }, - ), - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-4.snap deleted file mode 100644 index 1640d983..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-4.snap +++ /dev/null @@ -1,48 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "if a:\n pass;pass" ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - IfStatement( - If { - node: Node { - start: 0, - end: 19, - }, - test: Name( - Name { - node: Node { - start: 3, - end: 4, - }, - id: "a", - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 10, - end: 14, - }, - }, - ), - Pass( - Pass { - node: Node { - start: 15, - end: 19, - }, - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-5.snap deleted file mode 100644 index 3b57f44e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-5.snap +++ /dev/null @@ -1,62 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "if a is b:\n pass" ---- -Module { - node: Node { - start: 0, - end: 27, - }, - body: [ - IfStatement( - If { - node: Node { - start: 0, - end: 27, - }, - test: Compare( - Compare { - node: Node { - start: 3, - end: 9, - }, - left: Name( - Name { - node: Node { - start: 3, - end: 4, - }, - id: "a", - }, - ), - ops: [ - Is, - ], - comparators: [ - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "b", - }, - ), - ], - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 23, - end: 27, - }, - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-6.snap deleted file mode 100644 index f63027b8..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-6.snap +++ /dev/null @@ -1,113 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "if a is b:\n pass\nelif a is c:\n pass" ---- -Module { - node: Node { - start: 0, - end: 65, - }, - body: [ - IfStatement( - If { - node: Node { - start: 0, - end: 65, - }, - test: Compare( - Compare { - node: Node { - start: 3, - end: 9, - }, - left: Name( - Name { - node: Node { - start: 3, - end: 4, - }, - id: "a", - }, - ), - ops: [ - Is, - ], - comparators: [ - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "b", - }, - ), - ], - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 27, - end: 31, - }, - }, - ), - ], - orelse: [ - IfStatement( - If { - node: Node { - start: 32, - end: 65, - }, - test: Compare( - Compare { - node: Node { - start: 37, - end: 43, - }, - left: Name( - Name { - node: Node { - start: 37, - end: 38, - }, - id: "a", - }, - ), - ops: [ - Is, - ], - comparators: [ - Name( - Name { - node: Node { - start: 42, - end: 43, - }, - id: "c", - }, - ), - ], - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 61, - end: 65, - }, - }, - ), - ], - orelse: [], - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-7.snap deleted file mode 100644 index 59f89252..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if-7.snap +++ /dev/null @@ -1,122 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "if a is b:\n pass\nelif a is c:\n pass\nelse:\n pass\n" ---- -Module { - node: Node { - start: 0, - end: 93, - }, - body: [ - IfStatement( - If { - node: Node { - start: 0, - end: 93, - }, - test: Compare( - Compare { - node: Node { - start: 3, - end: 9, - }, - left: Name( - Name { - node: Node { - start: 3, - end: 4, - }, - id: "a", - }, - ), - ops: [ - Is, - ], - comparators: [ - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "b", - }, - ), - ], - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 27, - end: 31, - }, - }, - ), - ], - orelse: [ - IfStatement( - If { - node: Node { - start: 32, - end: 66, - }, - test: Compare( - Compare { - node: Node { - start: 37, - end: 43, - }, - left: Name( - Name { - node: Node { - start: 37, - end: 38, - }, - id: "a", - }, - ), - ops: [ - Is, - ], - comparators: [ - Name( - Name { - node: Node { - start: 42, - end: 43, - }, - id: "c", - }, - ), - ], - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 61, - end: 65, - }, - }, - ), - ], - orelse: [ - Pass( - Pass { - node: Node { - start: 88, - end: 92, - }, - }, - ), - ], - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-2.snap deleted file mode 100644 index 736e1e43..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-2.snap +++ /dev/null @@ -1,106 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "b: tuple[int, int] = 1, 2" -input_file: parser/test_data/inputs/one_liners/annotated_assignment.py ---- -Module { - node: Node { - start: 0, - end: 25, - }, - body: [ - AnnAssignStatement( - AnnAssign { - node: Node { - start: 0, - end: 25, - }, - target: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "b", - }, - ), - annotation: Subscript( - Subscript { - node: Node { - start: 3, - end: 18, - }, - value: Name( - Name { - node: Node { - start: 3, - end: 8, - }, - id: "tuple", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 9, - end: 18, - }, - elements: [ - Name( - Name { - node: Node { - start: 9, - end: 12, - }, - id: "int", - }, - ), - Name( - Name { - node: Node { - start: 14, - end: 17, - }, - id: "int", - }, - ), - ], - }, - ), - }, - ), - value: Some( - Tuple( - Tuple { - node: Node { - start: 21, - end: 25, - }, - elements: [ - Constant( - Constant { - node: Node { - start: 21, - end: 22, - }, - value: 1, - }, - ), - Constant( - Constant { - node: Node { - start: 24, - end: 25, - }, - value: 2, - }, - ), - ], - }, - ), - ), - simple: true, - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-3.snap deleted file mode 100644 index 9e20dd12..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-3.snap +++ /dev/null @@ -1,106 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "c: tuple[str, int] = \"1\", 2, " -input_file: parser/test_data/inputs/one_liners/annotated_assignment.py ---- -Module { - node: Node { - start: 0, - end: 28, - }, - body: [ - AnnAssignStatement( - AnnAssign { - node: Node { - start: 0, - end: 28, - }, - target: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "c", - }, - ), - annotation: Subscript( - Subscript { - node: Node { - start: 3, - end: 18, - }, - value: Name( - Name { - node: Node { - start: 3, - end: 8, - }, - id: "tuple", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 9, - end: 18, - }, - elements: [ - Name( - Name { - node: Node { - start: 9, - end: 12, - }, - id: "str", - }, - ), - Name( - Name { - node: Node { - start: 14, - end: 17, - }, - id: "int", - }, - ), - ], - }, - ), - }, - ), - value: Some( - Tuple( - Tuple { - node: Node { - start: 21, - end: 28, - }, - elements: [ - Constant( - Constant { - node: Node { - start: 21, - end: 24, - }, - value: "1", - }, - ), - Constant( - Constant { - node: Node { - start: 26, - end: 27, - }, - value: 2, - }, - ), - ], - }, - ), - ), - simple: true, - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-4.snap deleted file mode 100644 index f931c96b..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-4.snap +++ /dev/null @@ -1,87 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "d: tuple[int, int] = b" -input_file: parser/test_data/inputs/one_liners/annotated_assignment.py ---- -Module { - node: Node { - start: 0, - end: 22, - }, - body: [ - AnnAssignStatement( - AnnAssign { - node: Node { - start: 0, - end: 22, - }, - target: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "d", - }, - ), - annotation: Subscript( - Subscript { - node: Node { - start: 3, - end: 18, - }, - value: Name( - Name { - node: Node { - start: 3, - end: 8, - }, - id: "tuple", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 9, - end: 18, - }, - elements: [ - Name( - Name { - node: Node { - start: 9, - end: 12, - }, - id: "int", - }, - ), - Name( - Name { - node: Node { - start: 14, - end: 17, - }, - id: "int", - }, - ), - ], - }, - ), - }, - ), - value: Some( - Name( - Name { - node: Node { - start: 21, - end: 22, - }, - id: "b", - }, - ), - ), - simple: true, - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-5.snap deleted file mode 100644 index 973ed14e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-5.snap +++ /dev/null @@ -1,77 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "e: tuple[int, int]" -input_file: parser/test_data/inputs/one_liners/annotated_assignment.py ---- -Module { - node: Node { - start: 0, - end: 18, - }, - body: [ - AnnAssignStatement( - AnnAssign { - node: Node { - start: 0, - end: 18, - }, - target: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "e", - }, - ), - annotation: Subscript( - Subscript { - node: Node { - start: 3, - end: 18, - }, - value: Name( - Name { - node: Node { - start: 3, - end: 8, - }, - id: "tuple", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 9, - end: 18, - }, - elements: [ - Name( - Name { - node: Node { - start: 9, - end: 12, - }, - id: "int", - }, - ), - Name( - Name { - node: Node { - start: 14, - end: 17, - }, - id: "int", - }, - ), - ], - }, - ), - }, - ), - value: None, - simple: true, - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-6.snap deleted file mode 100644 index cc8a34ff..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-6.snap +++ /dev/null @@ -1,87 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "f: tuple[int, int] = e" -input_file: parser/test_data/inputs/one_liners/annotated_assignment.py ---- -Module { - node: Node { - start: 0, - end: 22, - }, - body: [ - AnnAssignStatement( - AnnAssign { - node: Node { - start: 0, - end: 22, - }, - target: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "f", - }, - ), - annotation: Subscript( - Subscript { - node: Node { - start: 3, - end: 18, - }, - value: Name( - Name { - node: Node { - start: 3, - end: 8, - }, - id: "tuple", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 9, - end: 18, - }, - elements: [ - Name( - Name { - node: Node { - start: 9, - end: 12, - }, - id: "int", - }, - ), - Name( - Name { - node: Node { - start: 14, - end: 17, - }, - id: "int", - }, - ), - ], - }, - ), - }, - ), - value: Some( - Name( - Name { - node: Node { - start: 21, - end: 22, - }, - id: "e", - }, - ), - ), - simple: true, - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-7.snap deleted file mode 100644 index ad4d1121..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-7.snap +++ /dev/null @@ -1,106 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "g: tuple[int,\n int] = 1, 2" -input_file: parser/test_data/inputs/one_liners/annotated_assignment.py ---- -Module { - node: Node { - start: 0, - end: 34, - }, - body: [ - AnnAssignStatement( - AnnAssign { - node: Node { - start: 0, - end: 34, - }, - target: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "g", - }, - ), - annotation: Subscript( - Subscript { - node: Node { - start: 3, - end: 27, - }, - value: Name( - Name { - node: Node { - start: 3, - end: 8, - }, - id: "tuple", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 9, - end: 27, - }, - elements: [ - Name( - Name { - node: Node { - start: 9, - end: 12, - }, - id: "int", - }, - ), - Name( - Name { - node: Node { - start: 23, - end: 26, - }, - id: "int", - }, - ), - ], - }, - ), - }, - ), - value: Some( - Tuple( - Tuple { - node: Node { - start: 30, - end: 34, - }, - elements: [ - Constant( - Constant { - node: Node { - start: 30, - end: 31, - }, - value: 1, - }, - ), - Constant( - Constant { - node: Node { - start: 33, - end: 34, - }, - value: 2, - }, - ), - ], - }, - ), - ), - simple: true, - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-8.snap deleted file mode 100644 index aea954de..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py-8.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "" -input_file: parser/test_data/inputs/one_liners/annotated_assignment.py ---- -Module { - node: Node { - start: 0, - end: 0, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py.snap deleted file mode 100644 index a416660f..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@annotated_assignment.py.snap +++ /dev/null @@ -1,51 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "a: int = 1" -input_file: parser/test_data/inputs/one_liners/annotated_assignment.py ---- -Module { - node: Node { - start: 0, - end: 10, - }, - body: [ - AnnAssignStatement( - AnnAssign { - node: Node { - start: 0, - end: 10, - }, - target: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "a", - }, - ), - annotation: Name( - Name { - node: Node { - start: 3, - end: 6, - }, - id: "int", - }, - ), - value: Some( - Constant( - Constant { - node: Node { - start: 9, - end: 10, - }, - value: 1, - }, - ), - ), - simple: true, - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-10.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-10.snap deleted file mode 100644 index 786956e2..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-10.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 & 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: BitAnd, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-11.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-11.snap deleted file mode 100644 index 56ee55b8..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-11.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 ^ 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: BitXor, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-12.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-12.snap deleted file mode 100644 index ba6891ed..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-12.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 | 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: BitOr, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-13.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-13.snap deleted file mode 100644 index a8e86cc6..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-13.snap +++ /dev/null @@ -1,60 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 | 2 | 3 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 9, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 9, - }, - op: BitOr, - left: BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: BitOr, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - right: Constant( - Constant { - node: Node { - start: 8, - end: 9, - }, - value: 3, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-14.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-14.snap deleted file mode 100644 index f217e5c1..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-14.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "1 @ 2\n" -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 6, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: MatMult, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-2.snap deleted file mode 100644 index 40bc98cd..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-2.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 - 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: Sub, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-3.snap deleted file mode 100644 index 4f13b5b3..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-3.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 * 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: Mult, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-4.snap deleted file mode 100644 index 86cff259..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-4.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 / 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: Div, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-5.snap deleted file mode 100644 index 0935b019..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-5.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 // 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 6, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 6, - }, - op: FloorDiv, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 5, - end: 6, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-6.snap deleted file mode 100644 index 90c619e0..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-6.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 % 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: Mod, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-7.snap deleted file mode 100644 index 54c40123..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-7.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 ** 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 6, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 6, - }, - op: Pow, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 5, - end: 6, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-8.snap deleted file mode 100644 index e1513e8c..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-8.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 << 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 6, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 6, - }, - op: LShift, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 5, - end: 6, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-9.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-9.snap deleted file mode 100644 index b4c58dbb..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py-9.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 >> 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 6, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 6, - }, - op: RShift, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 5, - end: 6, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py.snap deleted file mode 100644 index 1bc90e08..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@binary_op.py.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: 1 + 2 -input_file: parser/test_data/inputs/one_liners/binary_op.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - BinOp( - BinOp { - node: Node { - start: 0, - end: 5, - }, - op: Add, - left: Constant( - Constant { - node: Node { - start: 0, - end: 1, - }, - value: 1, - }, - ), - right: Constant( - Constant { - node: Node { - start: 4, - end: 5, - }, - value: 2, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-10.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-10.snap deleted file mode 100644 index 0891e125..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-10.snap +++ /dev/null @@ -1,77 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T: U, V: W]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 25, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 25, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 21, - end: 25, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 12, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVar( - TypeVar { - node: Node { - start: 14, - end: 18, - }, - name: "V", - bound: Some( - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "W", - }, - ), - ), - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-11.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-11.snap deleted file mode 100644 index d9086261..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-11.snap +++ /dev/null @@ -1,46 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[*T]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 17, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 17, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 13, - end: 17, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 8, - end: 10, - }, - name: "T", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-12.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-12.snap deleted file mode 100644 index c78dd9d7..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-12.snap +++ /dev/null @@ -1,56 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T, *U]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 20, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 20, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 16, - end: 20, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 9, - }, - name: "T", - bound: None, - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 11, - end: 13, - }, - name: "U", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-13.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-13.snap deleted file mode 100644 index 81dba543..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-13.snap +++ /dev/null @@ -1,66 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T: U, *V]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 23, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 23, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 19, - end: 23, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 12, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 14, - end: 16, - }, - name: "V", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-14.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-14.snap deleted file mode 100644 index 81dba543..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-14.snap +++ /dev/null @@ -1,66 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T: U, *V]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 23, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 23, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 19, - end: 23, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 12, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 14, - end: 16, - }, - name: "V", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-15.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-15.snap deleted file mode 100644 index 1434fc11..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-15.snap +++ /dev/null @@ -1,86 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T: U, V: W, *X]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 29, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 29, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 25, - end: 29, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 12, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVar( - TypeVar { - node: Node { - start: 14, - end: 18, - }, - name: "V", - bound: Some( - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "W", - }, - ), - ), - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 20, - end: 22, - }, - name: "X", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-16.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-16.snap deleted file mode 100644 index 3571b55e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-16.snap +++ /dev/null @@ -1,46 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[**T]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 18, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 18, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 14, - end: 18, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - ParamSpec( - ParamSpec { - node: Node { - start: 8, - end: 11, - }, - name: "T", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-17.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-17.snap deleted file mode 100644 index b163782a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-17.snap +++ /dev/null @@ -1,56 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T, **U]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 21, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 21, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 17, - end: 21, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 9, - }, - name: "T", - bound: None, - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 11, - end: 14, - }, - name: "U", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-18.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-18.snap deleted file mode 100644 index c14e019f..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-18.snap +++ /dev/null @@ -1,66 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T: U, **V]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 24, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 24, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 20, - end: 24, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 12, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "U", - }, - ), - ), - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 14, - end: 17, - }, - name: "V", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-19.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-19.snap deleted file mode 100644 index 260f4282..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-19.snap +++ /dev/null @@ -1,86 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T: U, V: W, **X]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 30, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 30, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 26, - end: 30, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 12, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVar( - TypeVar { - node: Node { - start: 14, - end: 18, - }, - name: "V", - bound: Some( - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "W", - }, - ), - ), - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 20, - end: 23, - }, - name: "X", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-2.snap deleted file mode 100644 index 352d3186..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-2.snap +++ /dev/null @@ -1,36 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a():\n pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 19, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 15, - end: 19, - }, - }, - ), - ], - decorator_list: [], - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-20.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-20.snap deleted file mode 100644 index b3283cbd..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-20.snap +++ /dev/null @@ -1,65 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T, *U, **V]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 25, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 25, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 21, - end: 25, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 9, - }, - name: "T", - bound: None, - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 11, - end: 13, - }, - name: "U", - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 15, - end: 18, - }, - name: "V", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-21.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-21.snap deleted file mode 100644 index d8403215..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-21.snap +++ /dev/null @@ -1,75 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T: U, *V, **W]: pass\n" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 29, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 29, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 24, - end: 28, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 12, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 14, - end: 16, - }, - name: "V", - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 18, - end: 21, - }, - name: "W", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-3.snap deleted file mode 100644 index 7cf5be5c..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-3.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a(b, c): pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 19, - }, - name: "a", - bases: [ - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "c", - }, - ), - ], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 15, - end: 19, - }, - }, - ), - ], - decorator_list: [], - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-4.snap deleted file mode 100644 index f4536a7b..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-4.snap +++ /dev/null @@ -1,80 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a(b, *c, **d): pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 25, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 25, - }, - name: "a", - bases: [ - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "b", - }, - ), - Starred( - Starred { - node: Node { - start: 11, - end: 12, - }, - value: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "c", - }, - ), - }, - ), - ], - keywords: [ - Keyword { - node: Node { - start: 15, - end: 17, - }, - arg: None, - value: Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "d", - }, - ), - }, - ], - body: [ - Pass( - Pass { - node: Node { - start: 21, - end: 25, - }, - }, - ), - ], - decorator_list: [], - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-5.snap deleted file mode 100644 index 3bd9f86a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-5.snap +++ /dev/null @@ -1,64 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a(b,\nc,\nd): pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 22, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 22, - }, - name: "a", - bases: [ - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "c", - }, - ), - Name( - Name { - node: Node { - start: 14, - end: 15, - }, - id: "d", - }, - ), - ], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 18, - end: 22, - }, - }, - ), - ], - decorator_list: [], - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-6.snap deleted file mode 100644 index c50343f8..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-6.snap +++ /dev/null @@ -1,46 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "@decor\nclass a: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 20, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 7, - end: 20, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 16, - end: 20, - }, - }, - ), - ], - decorator_list: [ - Name( - Name { - node: Node { - start: 1, - end: 6, - }, - id: "decor", - }, - ), - ], - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-7.snap deleted file mode 100644 index c50343f8..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-7.snap +++ /dev/null @@ -1,46 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "@decor\nclass a: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 20, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 7, - end: 20, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 16, - end: 20, - }, - }, - ), - ], - decorator_list: [ - Name( - Name { - node: Node { - start: 1, - end: 6, - }, - id: "decor", - }, - ), - ], - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-8.snap deleted file mode 100644 index ceb8e650..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-8.snap +++ /dev/null @@ -1,47 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 16, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 16, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 12, - end: 16, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 9, - }, - name: "T", - bound: None, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-9.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-9.snap deleted file mode 100644 index 3f083dac..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py-9.snap +++ /dev/null @@ -1,57 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a[T, U]: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 19, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 15, - end: 19, - }, - }, - ), - ], - decorator_list: [], - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 8, - end: 9, - }, - name: "T", - bound: None, - }, - ), - TypeVar( - TypeVar { - node: Node { - start: 11, - end: 12, - }, - name: "U", - bound: None, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py.snap deleted file mode 100644 index d609fb44..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@class.py.snap +++ /dev/null @@ -1,36 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "class a: pass" -input_file: parser/test_data/inputs/one_liners/class.py ---- -Module { - node: Node { - start: 0, - end: 13, - }, - body: [ - ClassDef( - ClassDef { - node: Node { - start: 0, - end: 13, - }, - name: "a", - bases: [], - keywords: [], - body: [ - Pass( - Pass { - node: Node { - start: 9, - end: 13, - }, - }, - ), - ], - decorator_list: [], - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-10.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-10.snap deleted file mode 100644 index 756c98e8..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-10.snap +++ /dev/null @@ -1,110 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "di = {1: \"name\", **{2: \"name2\"}, 3: \"name3\"}\n" -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 45, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 45, - }, - targets: [ - Name( - Name { - node: Node { - start: 0, - end: 2, - }, - id: "di", - }, - ), - ], - value: Dict( - Dict { - node: Node { - start: 5, - end: 45, - }, - keys: [ - Constant( - Constant { - node: Node { - start: 6, - end: 7, - }, - value: 1, - }, - ), - Constant( - Constant { - node: Node { - start: 33, - end: 34, - }, - value: 3, - }, - ), - ], - values: [ - Constant( - Constant { - node: Node { - start: 9, - end: 15, - }, - value: "name", - }, - ), - Dict( - Dict { - node: Node { - start: 19, - end: 31, - }, - keys: [ - Constant( - Constant { - node: Node { - start: 20, - end: 21, - }, - value: 2, - }, - ), - ], - values: [ - Constant( - Constant { - node: Node { - start: 23, - end: 30, - }, - value: "name2", - }, - ), - ], - }, - ), - Constant( - Constant { - node: Node { - start: 36, - end: 43, - }, - value: "name3", - }, - ), - ], - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-11.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-11.snap deleted file mode 100644 index 95a6a9a4..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-11.snap +++ /dev/null @@ -1,110 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "di = {1: \"name\", **{2: \"name2\"}, 3: \"name3\"}\n" -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 45, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 44, - }, - targets: [ - Name( - Name { - node: Node { - start: 0, - end: 2, - }, - id: "di", - }, - ), - ], - value: Dict( - Dict { - node: Node { - start: 5, - end: 44, - }, - keys: [ - Constant( - Constant { - node: Node { - start: 6, - end: 7, - }, - value: 1, - }, - ), - Constant( - Constant { - node: Node { - start: 33, - end: 34, - }, - value: 3, - }, - ), - ], - values: [ - Constant( - Constant { - node: Node { - start: 9, - end: 15, - }, - value: "name", - }, - ), - Dict( - Dict { - node: Node { - start: 19, - end: 31, - }, - keys: [ - Constant( - Constant { - node: Node { - start: 20, - end: 21, - }, - value: 2, - }, - ), - ], - values: [ - Constant( - Constant { - node: Node { - start: 23, - end: 30, - }, - value: "name2", - }, - ), - ], - }, - ), - Constant( - Constant { - node: Node { - start: 36, - end: 43, - }, - value: "name3", - }, - ), - ], - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-13.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-13.snap deleted file mode 100644 index 95a6a9a4..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-13.snap +++ /dev/null @@ -1,110 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "di = {1: \"name\", **{2: \"name2\"}, 3: \"name3\"}\n" -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 45, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 44, - }, - targets: [ - Name( - Name { - node: Node { - start: 0, - end: 2, - }, - id: "di", - }, - ), - ], - value: Dict( - Dict { - node: Node { - start: 5, - end: 44, - }, - keys: [ - Constant( - Constant { - node: Node { - start: 6, - end: 7, - }, - value: 1, - }, - ), - Constant( - Constant { - node: Node { - start: 33, - end: 34, - }, - value: 3, - }, - ), - ], - values: [ - Constant( - Constant { - node: Node { - start: 9, - end: 15, - }, - value: "name", - }, - ), - Dict( - Dict { - node: Node { - start: 19, - end: 31, - }, - keys: [ - Constant( - Constant { - node: Node { - start: 20, - end: 21, - }, - value: 2, - }, - ), - ], - values: [ - Constant( - Constant { - node: Node { - start: 23, - end: 30, - }, - value: "name2", - }, - ), - ], - }, - ), - Constant( - Constant { - node: Node { - start: 36, - end: 43, - }, - value: "name3", - }, - ), - ], - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-2.snap deleted file mode 100644 index 93b436f8..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-2.snap +++ /dev/null @@ -1,73 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a: b,\nc: d}," -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 13, - }, - body: [ - ExpressionStatement( - Tuple( - Tuple { - node: Node { - start: 0, - end: 13, - }, - elements: [ - Dict( - Dict { - node: Node { - start: 0, - end: 12, - }, - keys: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "c", - }, - ), - ], - values: [ - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 10, - end: 11, - }, - id: "d", - }, - ), - ], - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-3.snap deleted file mode 100644 index c1d3c49c..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-3.snap +++ /dev/null @@ -1,73 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a: b\n, c: d}," -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 14, - }, - body: [ - ExpressionStatement( - Tuple( - Tuple { - node: Node { - start: 0, - end: 14, - }, - elements: [ - Dict( - Dict { - node: Node { - start: 0, - end: 13, - }, - keys: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "c", - }, - ), - ], - values: [ - Name( - Name { - node: Node { - start: 4, - end: 6, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "d", - }, - ), - ], - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-4.snap deleted file mode 100644 index 81267725..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-4.snap +++ /dev/null @@ -1,91 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a: b,\nc: d,\n e: f}," -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 23, - }, - body: [ - ExpressionStatement( - Tuple( - Tuple { - node: Node { - start: 0, - end: 23, - }, - elements: [ - Dict( - Dict { - node: Node { - start: 0, - end: 22, - }, - keys: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "c", - }, - ), - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "e", - }, - ), - ], - values: [ - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 10, - end: 11, - }, - id: "d", - }, - ), - Name( - Name { - node: Node { - start: 20, - end: 21, - }, - id: "f", - }, - ), - ], - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-5.snap deleted file mode 100644 index 39fc29ef..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-5.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a: b,\n}," -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 9, - }, - body: [ - ExpressionStatement( - Tuple( - Tuple { - node: Node { - start: 0, - end: 9, - }, - elements: [ - Dict( - Dict { - node: Node { - start: 0, - end: 8, - }, - keys: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - ], - values: [ - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - ], - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-6.snap deleted file mode 100644 index d622ef3e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-6.snap +++ /dev/null @@ -1,63 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a: b, c: d,}" -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 13, - }, - body: [ - ExpressionStatement( - Dict( - Dict { - node: Node { - start: 0, - end: 13, - }, - keys: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "c", - }, - ), - ], - values: [ - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 10, - end: 11, - }, - id: "d", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-7.snap deleted file mode 100644 index 66037300..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-7.snap +++ /dev/null @@ -1,81 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{1: \"name\" for name in get_names()}" -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 35, - }, - body: [ - ExpressionStatement( - DictComp( - DictComp { - node: Node { - start: 0, - end: 35, - }, - key: Constant( - Constant { - node: Node { - start: 1, - end: 2, - }, - value: 1, - }, - ), - value: Constant( - Constant { - node: Node { - start: 4, - end: 10, - }, - value: "name", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 11, - end: 34, - }, - target: Name( - Name { - node: Node { - start: 15, - end: 19, - }, - id: "name", - }, - ), - iter: Call( - Call { - node: Node { - start: 23, - end: 34, - }, - func: Name( - Name { - node: Node { - start: 23, - end: 32, - }, - id: "get_names", - }, - ), - args: [], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-8.snap deleted file mode 100644 index a143844b..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-8.snap +++ /dev/null @@ -1,81 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{1: \"name\" for name in get_names()\n}" -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 36, - }, - body: [ - ExpressionStatement( - DictComp( - DictComp { - node: Node { - start: 0, - end: 36, - }, - key: Constant( - Constant { - node: Node { - start: 1, - end: 2, - }, - value: 1, - }, - ), - value: Constant( - Constant { - node: Node { - start: 4, - end: 10, - }, - value: "name", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 11, - end: 35, - }, - target: Name( - Name { - node: Node { - start: 15, - end: 19, - }, - id: "name", - }, - ), - iter: Call( - Call { - node: Node { - start: 23, - end: 35, - }, - func: Name( - Name { - node: Node { - start: 23, - end: 32, - }, - id: "get_names", - }, - ), - args: [], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-9.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-9.snap deleted file mode 100644 index 3882093a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py-9.snap +++ /dev/null @@ -1,133 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "aggregated_key_stats[idx_stat] = {\n **filter_value_NONE,\n **filter_key_found,\n **client_types,\n **market_watch,\n \"symbol\": symbol,\n \"name\": name,\n}" -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 165, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 165, - }, - targets: [ - Subscript( - Subscript { - node: Node { - start: 0, - end: 30, - }, - value: Name( - Name { - node: Node { - start: 0, - end: 20, - }, - id: "aggregated_key_stats", - }, - ), - slice: Name( - Name { - node: Node { - start: 21, - end: 29, - }, - id: "idx_stat", - }, - ), - }, - ), - ], - value: Dict( - Dict { - node: Node { - start: 33, - end: 165, - }, - keys: [ - Constant( - Constant { - node: Node { - start: 128, - end: 136, - }, - value: "symbol", - }, - ), - Constant( - Constant { - node: Node { - start: 150, - end: 156, - }, - value: "name", - }, - ), - ], - values: [ - Name( - Name { - node: Node { - start: 41, - end: 58, - }, - id: "filter_value_NONE", - }, - ), - Name( - Name { - node: Node { - start: 66, - end: 82, - }, - id: "filter_key_found", - }, - ), - Name( - Name { - node: Node { - start: 90, - end: 102, - }, - id: "client_types", - }, - ), - Name( - Name { - node: Node { - start: 110, - end: 122, - }, - id: "market_watch", - }, - ), - Name( - Name { - node: Node { - start: 138, - end: 144, - }, - id: "symbol", - }, - ), - Name( - Name { - node: Node { - start: 158, - end: 162, - }, - id: "name", - }, - ), - ], - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py.snap deleted file mode 100644 index 263a19ce..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@dict.py.snap +++ /dev/null @@ -1,63 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a: b, c: d}" -input_file: parser/test_data/inputs/one_liners/dict.py ---- -Module { - node: Node { - start: 0, - end: 12, - }, - body: [ - ExpressionStatement( - Dict( - Dict { - node: Node { - start: 0, - end: 12, - }, - keys: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "c", - }, - ), - ], - values: [ - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 10, - end: 11, - }, - id: "d", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-2.snap deleted file mode 100644 index 9885f2a3..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-2.snap +++ /dev/null @@ -1,50 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "for a in b:\n pass" -input_file: parser/test_data/inputs/one_liners/for.py ---- -Module { - node: Node { - start: 0, - end: 20, - }, - body: [ - ForStatement( - For { - node: Node { - start: 0, - end: 20, - }, - target: Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "b", - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 16, - end: 20, - }, - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-3.snap deleted file mode 100644 index 539b2284..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-3.snap +++ /dev/null @@ -1,121 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "for a in range(10):\n a = 1\nelse:\n b = 1" -input_file: parser/test_data/inputs/one_liners/for.py ---- -Module { - node: Node { - start: 0, - end: 45, - }, - body: [ - ForStatement( - For { - node: Node { - start: 0, - end: 45, - }, - target: Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "a", - }, - ), - iter: Call( - Call { - node: Node { - start: 9, - end: 18, - }, - func: Name( - Name { - node: Node { - start: 9, - end: 14, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 15, - end: 17, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - body: [ - AssignStatement( - Assign { - node: Node { - start: 24, - end: 29, - }, - targets: [ - Name( - Name { - node: Node { - start: 24, - end: 25, - }, - id: "a", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 28, - end: 29, - }, - value: 1, - }, - ), - }, - ), - ], - orelse: [ - AssignStatement( - Assign { - node: Node { - start: 40, - end: 45, - }, - targets: [ - Name( - Name { - node: Node { - start: 40, - end: 41, - }, - id: "b", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 44, - end: 45, - }, - value: 1, - }, - ), - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-4.snap deleted file mode 100644 index 0f400f07..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-4.snap +++ /dev/null @@ -1,133 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "for a in range(10), range(10):\n a = 1" -input_file: parser/test_data/inputs/one_liners/for.py ---- -Module { - node: Node { - start: 0, - end: 40, - }, - body: [ - ForStatement( - For { - node: Node { - start: 0, - end: 40, - }, - target: Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "a", - }, - ), - iter: Tuple( - Tuple { - node: Node { - start: 0, - end: 29, - }, - elements: [ - Call( - Call { - node: Node { - start: 9, - end: 18, - }, - func: Name( - Name { - node: Node { - start: 9, - end: 14, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 15, - end: 17, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - Call( - Call { - node: Node { - start: 20, - end: 29, - }, - func: Name( - Name { - node: Node { - start: 20, - end: 25, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 26, - end: 28, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ], - }, - ), - body: [ - AssignStatement( - Assign { - node: Node { - start: 35, - end: 40, - }, - targets: [ - Name( - Name { - node: Node { - start: 35, - end: 36, - }, - id: "a", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 39, - end: 40, - }, - value: 1, - }, - ), - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-5.snap deleted file mode 100644 index 9a0bd543..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-5.snap +++ /dev/null @@ -1,50 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "async for a in b: pass" -input_file: parser/test_data/inputs/one_liners/for.py ---- -Module { - node: Node { - start: 0, - end: 22, - }, - body: [ - AsyncForStatement( - AsyncFor { - node: Node { - start: 0, - end: 22, - }, - target: Name( - Name { - node: Node { - start: 10, - end: 11, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 15, - end: 16, - }, - id: "b", - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 18, - end: 22, - }, - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-6.snap deleted file mode 100644 index 96938042..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py-6.snap +++ /dev/null @@ -1,50 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "async for a in b:\n pass\n" -input_file: parser/test_data/inputs/one_liners/for.py ---- -Module { - node: Node { - start: 0, - end: 27, - }, - body: [ - AsyncForStatement( - AsyncFor { - node: Node { - start: 0, - end: 27, - }, - target: Name( - Name { - node: Node { - start: 10, - end: 11, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 15, - end: 16, - }, - id: "b", - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 22, - end: 26, - }, - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py.snap deleted file mode 100644 index 89ac4106..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@for.py.snap +++ /dev/null @@ -1,50 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "for a in b: pass" -input_file: parser/test_data/inputs/one_liners/for.py ---- -Module { - node: Node { - start: 0, - end: 16, - }, - body: [ - ForStatement( - For { - node: Node { - start: 0, - end: 16, - }, - target: Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "b", - }, - ), - body: [ - Pass( - Pass { - node: Node { - start: 12, - end: 16, - }, - }, - ), - ], - orelse: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@from_import.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@from_import.py-2.snap deleted file mode 100644 index c1f7dbfa..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@from_import.py-2.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "import a\nimport a as b\nimport a.b\nimport a.b as c\nimport a.b.c\nfrom a import b\nfrom a import b as c\nfrom a.b import c\nfrom a.b import c as d\nfrom ...a import b\nfrom ....a import b\nfrom .....a import b\nfrom ......a import b\nfrom .......a import b\nfrom ...\n" -input_file: parser/test_data/inputs/one_liners/from_import.py ---- -[ - InvalidSyntax { - msg: "Expected one of \"Identifier, Mul, LeftParen, \" but found Eof", - input: "", - advice: "Use * for importing everything or use () to specify names to import or specify the name you want to import", - span: ( - 246, - 255, - ), - }, -] diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@from_import.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@from_import.py.snap deleted file mode 100644 index 6408affd..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@from_import.py.snap +++ /dev/null @@ -1,291 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "import a\nimport a as b\nimport a.b\nimport a.b as c\nimport a.b.c\nfrom a import b\nfrom a import b as c\nfrom a.b import c\nfrom a.b import c as d\nfrom ...a import b\nfrom ....a import b\nfrom .....a import b\nfrom ......a import b\nfrom .......a import b\nfrom ...\n" -input_file: parser/test_data/inputs/one_liners/from_import.py ---- -Module { - node: Node { - start: 0, - end: 255, - }, - body: [ - Import( - Import { - node: Node { - start: 0, - end: 8, - }, - names: [ - Alias { - node: Node { - start: 7, - end: 8, - }, - name: "a", - asname: None, - }, - ], - }, - ), - Import( - Import { - node: Node { - start: 9, - end: 22, - }, - names: [ - Alias { - node: Node { - start: 16, - end: 22, - }, - name: "a", - asname: Some( - "b", - ), - }, - ], - }, - ), - Import( - Import { - node: Node { - start: 23, - end: 33, - }, - names: [ - Alias { - node: Node { - start: 30, - end: 33, - }, - name: "a.b", - asname: None, - }, - ], - }, - ), - Import( - Import { - node: Node { - start: 34, - end: 49, - }, - names: [ - Alias { - node: Node { - start: 41, - end: 49, - }, - name: "a.b", - asname: Some( - "c", - ), - }, - ], - }, - ), - Import( - Import { - node: Node { - start: 50, - end: 62, - }, - names: [ - Alias { - node: Node { - start: 57, - end: 62, - }, - name: "a.b.c", - asname: None, - }, - ], - }, - ), - ImportFrom( - ImportFrom { - node: Node { - start: 63, - end: 78, - }, - module: "a", - names: [ - Alias { - node: Node { - start: 77, - end: 78, - }, - name: "b", - asname: None, - }, - ], - level: 0, - }, - ), - ImportFrom( - ImportFrom { - node: Node { - start: 79, - end: 99, - }, - module: "a", - names: [ - Alias { - node: Node { - start: 93, - end: 99, - }, - name: "b", - asname: Some( - "c", - ), - }, - ], - level: 0, - }, - ), - ImportFrom( - ImportFrom { - node: Node { - start: 100, - end: 117, - }, - module: "a.b", - names: [ - Alias { - node: Node { - start: 116, - end: 117, - }, - name: "c", - asname: None, - }, - ], - level: 0, - }, - ), - ImportFrom( - ImportFrom { - node: Node { - start: 118, - end: 140, - }, - module: "a.b", - names: [ - Alias { - node: Node { - start: 134, - end: 140, - }, - name: "c", - asname: Some( - "d", - ), - }, - ], - level: 0, - }, - ), - ImportFrom( - ImportFrom { - node: Node { - start: 141, - end: 159, - }, - module: "a", - names: [ - Alias { - node: Node { - start: 158, - end: 159, - }, - name: "b", - asname: None, - }, - ], - level: 3, - }, - ), - ImportFrom( - ImportFrom { - node: Node { - start: 160, - end: 179, - }, - module: "a", - names: [ - Alias { - node: Node { - start: 178, - end: 179, - }, - name: "b", - asname: None, - }, - ], - level: 4, - }, - ), - ImportFrom( - ImportFrom { - node: Node { - start: 180, - end: 200, - }, - module: "a", - names: [ - Alias { - node: Node { - start: 199, - end: 200, - }, - name: "b", - asname: None, - }, - ], - level: 5, - }, - ), - ImportFrom( - ImportFrom { - node: Node { - start: 201, - end: 222, - }, - module: "a", - names: [ - Alias { - node: Node { - start: 221, - end: 222, - }, - name: "b", - asname: None, - }, - ], - level: 6, - }, - ), - ImportFrom( - ImportFrom { - node: Node { - start: 223, - end: 245, - }, - module: "a", - names: [ - Alias { - node: Node { - start: 244, - end: 245, - }, - name: "b", - asname: None, - }, - ], - level: 7, - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-10.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-10.snap deleted file mode 100644 index 69e2f5b3..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-10.snap +++ /dev/null @@ -1,49 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "async def a():\n pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 23, - }, - body: [ - AsyncFunctionDef( - AsyncFunctionDef { - node: Node { - start: 0, - end: 23, - }, - name: "a", - args: Arguments { - node: Node { - start: 12, - end: 12, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 19, - end: 23, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-11.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-11.snap deleted file mode 100644 index 27abc3a5..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-11.snap +++ /dev/null @@ -1,74 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "async def a(a, b, c): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 26, - }, - body: [ - AsyncFunctionDef( - AsyncFunctionDef { - node: Node { - start: 0, - end: 26, - }, - name: "a", - args: Arguments { - node: Node { - start: 12, - end: 19, - }, - posonlyargs: [], - args: [ - Arg { - node: Node { - start: 12, - end: 13, - }, - arg: "a", - annotation: None, - }, - Arg { - node: Node { - start: 15, - end: 16, - }, - arg: "b", - annotation: None, - }, - Arg { - node: Node { - start: 18, - end: 19, - }, - arg: "c", - annotation: None, - }, - ], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 22, - end: 26, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-12.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-12.snap deleted file mode 100644 index 34a5444f..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-12.snap +++ /dev/null @@ -1,60 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 16, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 16, - }, - name: "a", - args: Arguments { - node: Node { - start: 9, - end: 9, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 12, - end: 16, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 7, - }, - name: "T", - bound: None, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-13.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-13.snap deleted file mode 100644 index 0993c7ad..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-13.snap +++ /dev/null @@ -1,70 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T, U](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 19, - }, - name: "a", - args: Arguments { - node: Node { - start: 12, - end: 12, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 15, - end: 19, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 7, - }, - name: "T", - bound: None, - }, - ), - TypeVar( - TypeVar { - node: Node { - start: 9, - end: 10, - }, - name: "U", - bound: None, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-14.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-14.snap deleted file mode 100644 index 53b061d4..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-14.snap +++ /dev/null @@ -1,70 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T: U](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 19, - }, - name: "a", - args: Arguments { - node: Node { - start: 12, - end: 12, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 15, - end: 19, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 10, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "U", - }, - ), - ), - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-15.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-15.snap deleted file mode 100644 index 5d15c24e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-15.snap +++ /dev/null @@ -1,90 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T: U, V: W](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 25, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 25, - }, - name: "a", - args: Arguments { - node: Node { - start: 18, - end: 18, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 21, - end: 25, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 10, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVar( - TypeVar { - node: Node { - start: 12, - end: 16, - }, - name: "V", - bound: Some( - Name( - Name { - node: Node { - start: 15, - end: 16, - }, - id: "W", - }, - ), - ), - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-16.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-16.snap deleted file mode 100644 index 1699c92c..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-16.snap +++ /dev/null @@ -1,59 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[*T](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 17, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 17, - }, - name: "a", - args: Arguments { - node: Node { - start: 10, - end: 10, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 13, - end: 17, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 6, - end: 8, - }, - name: "T", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-17.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-17.snap deleted file mode 100644 index ff99068e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-17.snap +++ /dev/null @@ -1,69 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T, *U](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 20, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 20, - }, - name: "a", - args: Arguments { - node: Node { - start: 13, - end: 13, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 16, - end: 20, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 7, - }, - name: "T", - bound: None, - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 9, - end: 11, - }, - name: "U", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-18.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-18.snap deleted file mode 100644 index 5392d7d2..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-18.snap +++ /dev/null @@ -1,79 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T: U, *V](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 23, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 23, - }, - name: "a", - args: Arguments { - node: Node { - start: 16, - end: 16, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 19, - end: 23, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 10, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 12, - end: 14, - }, - name: "V", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-19.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-19.snap deleted file mode 100644 index 23acb1d9..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-19.snap +++ /dev/null @@ -1,99 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T: U, V: W, *X](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 29, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 29, - }, - name: "a", - args: Arguments { - node: Node { - start: 22, - end: 22, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 25, - end: 29, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 10, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVar( - TypeVar { - node: Node { - start: 12, - end: 16, - }, - name: "V", - bound: Some( - Name( - Name { - node: Node { - start: 15, - end: 16, - }, - id: "W", - }, - ), - ), - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 18, - end: 20, - }, - name: "X", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-2.snap deleted file mode 100644 index 41def031..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-2.snap +++ /dev/null @@ -1,49 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a():\n pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 17, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 17, - }, - name: "a", - args: Arguments { - node: Node { - start: 6, - end: 6, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 13, - end: 17, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-20.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-20.snap deleted file mode 100644 index 8c698d31..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-20.snap +++ /dev/null @@ -1,59 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[**T](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 18, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 18, - }, - name: "a", - args: Arguments { - node: Node { - start: 11, - end: 11, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 14, - end: 18, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - ParamSpec( - ParamSpec { - node: Node { - start: 6, - end: 9, - }, - name: "T", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-21.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-21.snap deleted file mode 100644 index 948c3af2..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-21.snap +++ /dev/null @@ -1,69 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T, **U](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 21, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 21, - }, - name: "a", - args: Arguments { - node: Node { - start: 14, - end: 14, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 17, - end: 21, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 7, - }, - name: "T", - bound: None, - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 9, - end: 12, - }, - name: "U", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-22.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-22.snap deleted file mode 100644 index 22a08162..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-22.snap +++ /dev/null @@ -1,79 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T: U, **V](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 24, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 24, - }, - name: "a", - args: Arguments { - node: Node { - start: 17, - end: 17, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 20, - end: 24, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 10, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "U", - }, - ), - ), - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 12, - end: 15, - }, - name: "V", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-23.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-23.snap deleted file mode 100644 index 84ff88bc..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-23.snap +++ /dev/null @@ -1,99 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T: U, V: W, **X](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 30, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 30, - }, - name: "a", - args: Arguments { - node: Node { - start: 23, - end: 23, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 26, - end: 30, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 10, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVar( - TypeVar { - node: Node { - start: 12, - end: 16, - }, - name: "V", - bound: Some( - Name( - Name { - node: Node { - start: 15, - end: 16, - }, - id: "W", - }, - ), - ), - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 18, - end: 21, - }, - name: "X", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-24.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-24.snap deleted file mode 100644 index ff4d4dc3..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-24.snap +++ /dev/null @@ -1,78 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T, *U, **V](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 25, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 25, - }, - name: "a", - args: Arguments { - node: Node { - start: 18, - end: 18, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 21, - end: 25, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 7, - }, - name: "T", - bound: None, - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 9, - end: 11, - }, - name: "U", - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 13, - end: 16, - }, - name: "V", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-25.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-25.snap deleted file mode 100644 index 8749c2a2..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-25.snap +++ /dev/null @@ -1,88 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a[T: U, *V, **W](): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 28, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 28, - }, - name: "a", - args: Arguments { - node: Node { - start: 21, - end: 21, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 24, - end: 28, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [ - TypeVar( - TypeVar { - node: Node { - start: 6, - end: 10, - }, - name: "T", - bound: Some( - Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "U", - }, - ), - ), - }, - ), - TypeVarTuple( - TypeVarTuple { - node: Node { - start: 12, - end: 14, - }, - name: "V", - }, - ), - ParamSpec( - ParamSpec { - node: Node { - start: 16, - end: 19, - }, - name: "W", - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-26.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-26.snap deleted file mode 100644 index 3a3cfb1a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-26.snap +++ /dev/null @@ -1,335 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def dataclass_transform(\n *,\n eq_default: bool = True,\n order_default: bool = False,\n kw_only_default: bool = False,\n frozen_default: bool = False, # on 3.11, runtime accepts it as part of kwargs\n # this next annotation cannot be parsed need fix\n field_specifiers: tuple[type[Any] | Callable[..., Any], ...] = (),\n **kwargs: Any,\n) -> IdentityFunction: ...\n" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 382, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 382, - }, - name: "dataclass_transform", - args: Arguments { - node: Node { - start: 29, - end: 354, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [ - Arg { - node: Node { - start: 36, - end: 59, - }, - arg: "eq_default", - annotation: Some( - Name( - Name { - node: Node { - start: 48, - end: 52, - }, - id: "bool", - }, - ), - ), - }, - Arg { - node: Node { - start: 65, - end: 92, - }, - arg: "order_default", - annotation: Some( - Name( - Name { - node: Node { - start: 80, - end: 84, - }, - id: "bool", - }, - ), - ), - }, - Arg { - node: Node { - start: 98, - end: 127, - }, - arg: "kw_only_default", - annotation: Some( - Name( - Name { - node: Node { - start: 115, - end: 119, - }, - id: "bool", - }, - ), - ), - }, - Arg { - node: Node { - start: 133, - end: 161, - }, - arg: "frozen_default", - annotation: Some( - Name( - Name { - node: Node { - start: 149, - end: 153, - }, - id: "bool", - }, - ), - ), - }, - Arg { - node: Node { - start: 269, - end: 334, - }, - arg: "field_specifiers", - annotation: Some( - Subscript( - Subscript { - node: Node { - start: 287, - end: 329, - }, - value: Name( - Name { - node: Node { - start: 287, - end: 292, - }, - id: "tuple", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 293, - end: 329, - }, - elements: [ - BinOp( - BinOp { - node: Node { - start: 293, - end: 323, - }, - op: BitOr, - left: Subscript( - Subscript { - node: Node { - start: 293, - end: 302, - }, - value: Name( - Name { - node: Node { - start: 293, - end: 297, - }, - id: "type", - }, - ), - slice: Name( - Name { - node: Node { - start: 298, - end: 301, - }, - id: "Any", - }, - ), - }, - ), - right: Subscript( - Subscript { - node: Node { - start: 305, - end: 323, - }, - value: Name( - Name { - node: Node { - start: 305, - end: 313, - }, - id: "Callable", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 314, - end: 323, - }, - elements: [ - Constant( - Constant { - node: Node { - start: 314, - end: 317, - }, - value: ..., - }, - ), - Name( - Name { - node: Node { - start: 319, - end: 322, - }, - id: "Any", - }, - ), - ], - }, - ), - }, - ), - }, - ), - Constant( - Constant { - node: Node { - start: 325, - end: 328, - }, - value: ..., - }, - ), - ], - }, - ), - }, - ), - ), - }, - ], - kw_defaults: [ - Some( - Constant( - Constant { - node: Node { - start: 55, - end: 59, - }, - value: true, - }, - ), - ), - Some( - Constant( - Constant { - node: Node { - start: 87, - end: 92, - }, - value: false, - }, - ), - ), - Some( - Constant( - Constant { - node: Node { - start: 122, - end: 127, - }, - value: false, - }, - ), - ), - Some( - Constant( - Constant { - node: Node { - start: 156, - end: 161, - }, - value: false, - }, - ), - ), - Some( - Tuple( - Tuple { - node: Node { - start: 332, - end: 334, - }, - elements: [], - }, - ), - ), - ], - kwarg: Some( - Arg { - node: Node { - start: 342, - end: 353, - }, - arg: "kwargs", - annotation: Some( - Name( - Name { - node: Node { - start: 350, - end: 353, - }, - id: "Any", - }, - ), - ), - }, - ), - defaults: [], - }, - body: [ - ExpressionStatement( - Constant( - Constant { - node: Node { - start: 378, - end: 381, - }, - value: ..., - }, - ), - ), - ], - decorator_list: [], - returns: Some( - Name( - Name { - node: Node { - start: 360, - end: 376, - }, - id: "IdentityFunction", - }, - ), - ), - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-3.snap deleted file mode 100644 index d92f53ae..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-3.snap +++ /dev/null @@ -1,74 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a(a, b, c): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 20, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 20, - }, - name: "a", - args: Arguments { - node: Node { - start: 6, - end: 13, - }, - posonlyargs: [], - args: [ - Arg { - node: Node { - start: 6, - end: 7, - }, - arg: "a", - annotation: None, - }, - Arg { - node: Node { - start: 9, - end: 10, - }, - arg: "b", - annotation: None, - }, - Arg { - node: Node { - start: 12, - end: 13, - }, - arg: "c", - annotation: None, - }, - ], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 16, - end: 20, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-4.snap deleted file mode 100644 index 0b551b22..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-4.snap +++ /dev/null @@ -1,76 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a(a, *b, **c): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 23, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 23, - }, - name: "a", - args: Arguments { - node: Node { - start: 6, - end: 16, - }, - posonlyargs: [], - args: [ - Arg { - node: Node { - start: 6, - end: 7, - }, - arg: "a", - annotation: None, - }, - ], - vararg: Some( - Arg { - node: Node { - start: 10, - end: 11, - }, - arg: "b", - annotation: None, - }, - ), - kwonlyargs: [], - kw_defaults: [], - kwarg: Some( - Arg { - node: Node { - start: 15, - end: 16, - }, - arg: "c", - annotation: None, - }, - ), - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 19, - end: 23, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-5.snap deleted file mode 100644 index bf9f3443..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-5.snap +++ /dev/null @@ -1,74 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a(a,\nb,\nc): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 20, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 20, - }, - name: "a", - args: Arguments { - node: Node { - start: 6, - end: 13, - }, - posonlyargs: [], - args: [ - Arg { - node: Node { - start: 6, - end: 7, - }, - arg: "a", - annotation: None, - }, - Arg { - node: Node { - start: 9, - end: 10, - }, - arg: "b", - annotation: None, - }, - Arg { - node: Node { - start: 12, - end: 13, - }, - arg: "c", - annotation: None, - }, - ], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 16, - end: 20, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-6.snap deleted file mode 100644 index 9b5e916b..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-6.snap +++ /dev/null @@ -1,59 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "@decor\ndef a(): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 20, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 7, - end: 20, - }, - name: "a", - args: Arguments { - node: Node { - start: 13, - end: 13, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 16, - end: 20, - }, - }, - ), - ], - decorator_list: [ - Name( - Name { - node: Node { - start: 1, - end: 6, - }, - id: "decor", - }, - ), - ], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-7.snap deleted file mode 100644 index 81b67133..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-7.snap +++ /dev/null @@ -1,161 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "@decor\ndef f(a: 'annotation', b=1, c=2, *d, e, f=3, **g): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 62, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 7, - end: 62, - }, - name: "f", - args: Arguments { - node: Node { - start: 13, - end: 55, - }, - posonlyargs: [], - args: [ - Arg { - node: Node { - start: 13, - end: 28, - }, - arg: "a", - annotation: Some( - Constant( - Constant { - node: Node { - start: 16, - end: 28, - }, - value: "annotation", - }, - ), - ), - }, - Arg { - node: Node { - start: 30, - end: 33, - }, - arg: "b", - annotation: None, - }, - Arg { - node: Node { - start: 35, - end: 38, - }, - arg: "c", - annotation: None, - }, - ], - vararg: Some( - Arg { - node: Node { - start: 41, - end: 42, - }, - arg: "d", - annotation: None, - }, - ), - kwonlyargs: [ - Arg { - node: Node { - start: 44, - end: 45, - }, - arg: "e", - annotation: None, - }, - Arg { - node: Node { - start: 47, - end: 50, - }, - arg: "f", - annotation: None, - }, - ], - kw_defaults: [ - None, - Some( - Constant( - Constant { - node: Node { - start: 49, - end: 50, - }, - value: 3, - }, - ), - ), - ], - kwarg: Some( - Arg { - node: Node { - start: 54, - end: 55, - }, - arg: "g", - annotation: None, - }, - ), - defaults: [ - Constant( - Constant { - node: Node { - start: 32, - end: 33, - }, - value: 1, - }, - ), - Constant( - Constant { - node: Node { - start: 37, - end: 38, - }, - value: 2, - }, - ), - ], - }, - body: [ - Pass( - Pass { - node: Node { - start: 58, - end: 62, - }, - }, - ), - ], - decorator_list: [ - Name( - Name { - node: Node { - start: 1, - end: 6, - }, - id: "decor", - }, - ), - ], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-8.snap deleted file mode 100644 index 76e2267a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-8.snap +++ /dev/null @@ -1,59 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def func() -> None: pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 24, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 24, - }, - name: "func", - args: Arguments { - node: Node { - start: 9, - end: 9, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 20, - end: 24, - }, - }, - ), - ], - decorator_list: [], - returns: Some( - Constant( - Constant { - node: Node { - start: 14, - end: 18, - }, - value: None, - }, - ), - ), - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-9.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-9.snap deleted file mode 100644 index 7314a750..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py-9.snap +++ /dev/null @@ -1,49 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "async def a(): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - AsyncFunctionDef( - AsyncFunctionDef { - node: Node { - start: 0, - end: 19, - }, - name: "a", - args: Arguments { - node: Node { - start: 12, - end: 12, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 15, - end: 19, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py.snap deleted file mode 100644 index 7fa011a8..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@function_def.py.snap +++ /dev/null @@ -1,49 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "def a(): pass" -input_file: parser/test_data/inputs/one_liners/function_def.py ---- -Module { - node: Node { - start: 0, - end: 13, - }, - body: [ - FunctionDef( - FunctionDef { - node: Node { - start: 0, - end: 13, - }, - name: "a", - args: Arguments { - node: Node { - start: 6, - end: 6, - }, - posonlyargs: [], - args: [], - vararg: None, - kwonlyargs: [], - kw_defaults: [], - kwarg: None, - defaults: [], - }, - body: [ - Pass( - Pass { - node: Node { - start: 9, - end: 13, - }, - }, - ), - ], - decorator_list: [], - returns: None, - type_comment: None, - type_params: [], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-2.snap deleted file mode 100644 index 0ed8e06d..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-2.snap +++ /dev/null @@ -1,70 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: (a for a in b if c) -input_file: parser/test_data/inputs/one_liners/generator_expressions.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - ExpressionStatement( - Generator( - Generator { - node: Node { - start: 0, - end: 19, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 18, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [ - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "c", - }, - ), - ], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-3.snap deleted file mode 100644 index 00588146..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-3.snap +++ /dev/null @@ -1,79 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: (a for a in b if c if d) -input_file: parser/test_data/inputs/one_liners/generator_expressions.py ---- -Module { - node: Node { - start: 0, - end: 24, - }, - body: [ - ExpressionStatement( - Generator( - Generator { - node: Node { - start: 0, - end: 24, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 23, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [ - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "c", - }, - ), - Name( - Name { - node: Node { - start: 22, - end: 23, - }, - id: "d", - }, - ), - ], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-4.snap deleted file mode 100644 index 22971e04..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-4.snap +++ /dev/null @@ -1,86 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: (a for a in b for c in d) -input_file: parser/test_data/inputs/one_liners/generator_expressions.py ---- -Module { - node: Node { - start: 0, - end: 25, - }, - body: [ - ExpressionStatement( - Generator( - Generator { - node: Node { - start: 0, - end: 25, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 13, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [], - is_async: false, - }, - Comprehension { - node: Node { - start: 14, - end: 24, - }, - target: Name( - Name { - node: Node { - start: 18, - end: 19, - }, - id: "c", - }, - ), - iter: Name( - Name { - node: Node { - start: 23, - end: 24, - }, - id: "d", - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-5.snap deleted file mode 100644 index 60b13057..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-5.snap +++ /dev/null @@ -1,108 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: (ord(c) for line in file for c in line) -input_file: parser/test_data/inputs/one_liners/generator_expressions.py ---- -Module { - node: Node { - start: 0, - end: 39, - }, - body: [ - ExpressionStatement( - Generator( - Generator { - node: Node { - start: 0, - end: 39, - }, - element: Call( - Call { - node: Node { - start: 1, - end: 7, - }, - func: Name( - Name { - node: Node { - start: 1, - end: 4, - }, - id: "ord", - }, - ), - args: [ - Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "c", - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - generators: [ - Comprehension { - node: Node { - start: 8, - end: 24, - }, - target: Name( - Name { - node: Node { - start: 12, - end: 16, - }, - id: "line", - }, - ), - iter: Name( - Name { - node: Node { - start: 20, - end: 24, - }, - id: "file", - }, - ), - ifs: [], - is_async: false, - }, - Comprehension { - node: Node { - start: 25, - end: 38, - }, - target: Name( - Name { - node: Node { - start: 29, - end: 30, - }, - id: "c", - }, - ), - iter: Name( - Name { - node: Node { - start: 34, - end: 38, - }, - id: "line", - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-6.snap deleted file mode 100644 index 0871c3be..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py-6.snap +++ /dev/null @@ -1,198 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "(x*y for x in range(10) for y in range(10) if x*y > 10)\n" -input_file: parser/test_data/inputs/one_liners/generator_expressions.py ---- -Module { - node: Node { - start: 0, - end: 56, - }, - body: [ - ExpressionStatement( - Generator( - Generator { - node: Node { - start: 0, - end: 56, - }, - element: BinOp( - BinOp { - node: Node { - start: 1, - end: 4, - }, - op: Mult, - left: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "x", - }, - ), - right: Name( - Name { - node: Node { - start: 3, - end: 4, - }, - id: "y", - }, - ), - }, - ), - generators: [ - Comprehension { - node: Node { - start: 5, - end: 23, - }, - target: Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "x", - }, - ), - iter: Call( - Call { - node: Node { - start: 14, - end: 23, - }, - func: Name( - Name { - node: Node { - start: 14, - end: 19, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 20, - end: 22, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - Comprehension { - node: Node { - start: 24, - end: 54, - }, - target: Name( - Name { - node: Node { - start: 28, - end: 29, - }, - id: "y", - }, - ), - iter: Call( - Call { - node: Node { - start: 33, - end: 42, - }, - func: Name( - Name { - node: Node { - start: 33, - end: 38, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 39, - end: 41, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [ - Compare( - Compare { - node: Node { - start: 46, - end: 54, - }, - left: BinOp( - BinOp { - node: Node { - start: 46, - end: 49, - }, - op: Mult, - left: Name( - Name { - node: Node { - start: 46, - end: 47, - }, - id: "x", - }, - ), - right: Name( - Name { - node: Node { - start: 48, - end: 49, - }, - id: "y", - }, - ), - }, - ), - ops: [ - Gt, - ], - comparators: [ - Constant( - Constant { - node: Node { - start: 52, - end: 54, - }, - value: 10, - }, - ), - ], - }, - ), - ], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py.snap deleted file mode 100644 index 7cad2cbe..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@generator_expressions.py.snap +++ /dev/null @@ -1,60 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: (a for a in b) -input_file: parser/test_data/inputs/one_liners/generator_expressions.py ---- -Module { - node: Node { - start: 0, - end: 14, - }, - body: [ - ExpressionStatement( - Generator( - Generator { - node: Node { - start: 0, - end: 14, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 13, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-10.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-10.snap deleted file mode 100644 index fa30520c..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-10.snap +++ /dev/null @@ -1,79 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a for a in b if c if d]" -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 24, - }, - body: [ - ExpressionStatement( - ListComp( - ListComp { - node: Node { - start: 0, - end: 24, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 23, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [ - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "c", - }, - ), - Name( - Name { - node: Node { - start: 22, - end: 23, - }, - id: "d", - }, - ), - ], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-11.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-11.snap deleted file mode 100644 index c68bbca3..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-11.snap +++ /dev/null @@ -1,86 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a for a in b for c in d]" -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 25, - }, - body: [ - ExpressionStatement( - ListComp( - ListComp { - node: Node { - start: 0, - end: 25, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 13, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [], - is_async: false, - }, - Comprehension { - node: Node { - start: 14, - end: 24, - }, - target: Name( - Name { - node: Node { - start: 18, - end: 19, - }, - id: "c", - }, - ), - iter: Name( - Name { - node: Node { - start: 23, - end: 24, - }, - id: "d", - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-12.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-12.snap deleted file mode 100644 index 03c0159f..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-12.snap +++ /dev/null @@ -1,96 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a for a in b if c for d in e]\n" -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 31, - }, - body: [ - ExpressionStatement( - ListComp( - ListComp { - node: Node { - start: 0, - end: 31, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 18, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [ - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "c", - }, - ), - ], - is_async: false, - }, - Comprehension { - node: Node { - start: 19, - end: 29, - }, - target: Name( - Name { - node: Node { - start: 23, - end: 24, - }, - id: "d", - }, - ), - iter: Name( - Name { - node: Node { - start: 28, - end: 29, - }, - id: "e", - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-13.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-13.snap deleted file mode 100644 index 372b7872..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-13.snap +++ /dev/null @@ -1,96 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a for a in b if c for d in e]\n" -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 31, - }, - body: [ - ExpressionStatement( - ListComp( - ListComp { - node: Node { - start: 0, - end: 30, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 18, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [ - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "c", - }, - ), - ], - is_async: false, - }, - Comprehension { - node: Node { - start: 19, - end: 29, - }, - target: Name( - Name { - node: Node { - start: 23, - end: 24, - }, - id: "d", - }, - ), - iter: Name( - Name { - node: Node { - start: 28, - end: 29, - }, - id: "e", - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-2.snap deleted file mode 100644 index c2634013..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-2.snap +++ /dev/null @@ -1,62 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a,\nb, c]," -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 10, - }, - body: [ - ExpressionStatement( - Tuple( - Tuple { - node: Node { - start: 0, - end: 10, - }, - elements: [ - List( - List { - node: Node { - start: 0, - end: 9, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "c", - }, - ), - ], - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-3.snap deleted file mode 100644 index 8be4d683..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-3.snap +++ /dev/null @@ -1,62 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a\n, b, c]," -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 11, - }, - body: [ - ExpressionStatement( - Tuple( - Tuple { - node: Node { - start: 0, - end: 11, - }, - elements: [ - List( - List { - node: Node { - start: 0, - end: 10, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 3, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "c", - }, - ), - ], - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-4.snap deleted file mode 100644 index 90d20781..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-4.snap +++ /dev/null @@ -1,62 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a,\nb,\n c]," -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 14, - }, - body: [ - ExpressionStatement( - Tuple( - Tuple { - node: Node { - start: 0, - end: 14, - }, - elements: [ - List( - List { - node: Node { - start: 0, - end: 13, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "c", - }, - ), - ], - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-5.snap deleted file mode 100644 index 7af977f9..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-5.snap +++ /dev/null @@ -1,44 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a,\n]," -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 6, - }, - body: [ - ExpressionStatement( - Tuple( - Tuple { - node: Node { - start: 0, - end: 6, - }, - elements: [ - List( - List { - node: Node { - start: 0, - end: 5, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - ], - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-6.snap deleted file mode 100644 index 7a1fcc69..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-6.snap +++ /dev/null @@ -1,52 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a, b, c,]" -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 10, - }, - body: [ - ExpressionStatement( - List( - List { - node: Node { - start: 0, - end: 10, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "c", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-7.snap deleted file mode 100644 index 968a2bc9..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-7.snap +++ /dev/null @@ -1,150 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "month_names = ['Januari', 'Februari', 'Maart', # These are the\n 'April', 'Mei', 'Juni', # Dutch names\n 'Juli', 'Augustus', 'September', # for the months\n 'Oktober', 'November', 'December'] # of the year," -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 233, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 233, - }, - targets: [ - Name( - Name { - node: Node { - start: 0, - end: 11, - }, - id: "month_names", - }, - ), - ], - value: List( - List { - node: Node { - start: 14, - end: 233, - }, - elements: [ - Constant( - Constant { - node: Node { - start: 15, - end: 24, - }, - value: "Januari", - }, - ), - Constant( - Constant { - node: Node { - start: 26, - end: 36, - }, - value: "Februari", - }, - ), - Constant( - Constant { - node: Node { - start: 38, - end: 45, - }, - value: "Maart", - }, - ), - Constant( - Constant { - node: Node { - start: 71, - end: 78, - }, - value: "April", - }, - ), - Constant( - Constant { - node: Node { - start: 82, - end: 87, - }, - value: "Mei", - }, - ), - Constant( - Constant { - node: Node { - start: 94, - end: 100, - }, - value: "Juni", - }, - ), - Constant( - Constant { - node: Node { - start: 125, - end: 131, - }, - value: "Juli", - }, - ), - Constant( - Constant { - node: Node { - start: 136, - end: 146, - }, - value: "Augustus", - }, - ), - Constant( - Constant { - node: Node { - start: 148, - end: 159, - }, - value: "September", - }, - ), - Constant( - Constant { - node: Node { - start: 182, - end: 191, - }, - value: "Oktober", - }, - ), - Constant( - Constant { - node: Node { - start: 193, - end: 203, - }, - value: "November", - }, - ), - Constant( - Constant { - node: Node { - start: 205, - end: 215, - }, - value: "December", - }, - ), - ], - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-8.snap deleted file mode 100644 index 23eb9518..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-8.snap +++ /dev/null @@ -1,60 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a for a in b]" -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 14, - }, - body: [ - ExpressionStatement( - ListComp( - ListComp { - node: Node { - start: 0, - end: 14, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 13, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-9.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-9.snap deleted file mode 100644 index 71d2c616..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py-9.snap +++ /dev/null @@ -1,70 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "[a for a in b if c]" -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - ExpressionStatement( - ListComp( - ListComp { - node: Node { - start: 0, - end: 19, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 18, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "b", - }, - ), - ifs: [ - Name( - Name { - node: Node { - start: 17, - end: 18, - }, - id: "c", - }, - ), - ], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py.snap deleted file mode 100644 index f327309e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@lists.py.snap +++ /dev/null @@ -1,52 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "\n[a, b, c]" -input_file: parser/test_data/inputs/one_liners/lists.py ---- -Module { - node: Node { - start: 0, - end: 10, - }, - body: [ - ExpressionStatement( - List( - List { - node: Node { - start: 1, - end: 10, - }, - elements: [ - Name( - Name { - node: Node { - start: 2, - end: 3, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "c", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-2.snap deleted file mode 100644 index 436924a9..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-2.snap +++ /dev/null @@ -1,87 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "match a:\n case 1 | 2:\n pass" -input_file: parser/test_data/inputs/one_liners/match.py ---- -Module { - node: Node { - start: 0, - end: 37, - }, - body: [ - Match( - Match { - node: Node { - start: 0, - end: 37, - }, - subject: Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "a", - }, - ), - cases: [ - MatchCase { - node: Node { - start: 13, - end: 37, - }, - pattern: MatchOr( - [ - MatchValue( - MatchValue { - node: Node { - start: 18, - end: 19, - }, - value: Constant( - Constant { - node: Node { - start: 18, - end: 19, - }, - value: 1, - }, - ), - }, - ), - MatchValue( - MatchValue { - node: Node { - start: 22, - end: 23, - }, - value: Constant( - Constant { - node: Node { - start: 22, - end: 23, - }, - value: 2, - }, - ), - }, - ), - ], - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 33, - end: 37, - }, - }, - ), - ], - }, - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-3.snap deleted file mode 100644 index d8b4027f..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-3.snap +++ /dev/null @@ -1,75 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "match a.b:\n case 1:\n pass" -input_file: parser/test_data/inputs/one_liners/match.py ---- -Module { - node: Node { - start: 0, - end: 35, - }, - body: [ - Match( - Match { - node: Node { - start: 0, - end: 35, - }, - subject: Attribute( - Attribute { - node: Node { - start: 6, - end: 9, - }, - value: Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "a", - }, - ), - attr: "b", - }, - ), - cases: [ - MatchCase { - node: Node { - start: 15, - end: 35, - }, - pattern: MatchValue( - MatchValue { - node: Node { - start: 20, - end: 21, - }, - value: Constant( - Constant { - node: Node { - start: 20, - end: 21, - }, - value: 1, - }, - ), - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 31, - end: 35, - }, - }, - ), - ], - }, - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-4.snap deleted file mode 100644 index 0124bbe3..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-4.snap +++ /dev/null @@ -1,238 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "match a:\n case None:\n pass\n case True:\n pass\n case False:\n pass\n case -1:\n pass\n case 1.0:\n pass\n case _:\n pass" -input_file: parser/test_data/inputs/one_liners/match.py ---- -Module { - node: Node { - start: 0, - end: 171, - }, - body: [ - Match( - Match { - node: Node { - start: 0, - end: 171, - }, - subject: Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "a", - }, - ), - cases: [ - MatchCase { - node: Node { - start: 13, - end: 41, - }, - pattern: MatchValue( - MatchValue { - node: Node { - start: 18, - end: 22, - }, - value: Constant( - Constant { - node: Node { - start: 18, - end: 22, - }, - value: None, - }, - ), - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 32, - end: 36, - }, - }, - ), - ], - }, - MatchCase { - node: Node { - start: 41, - end: 69, - }, - pattern: MatchValue( - MatchValue { - node: Node { - start: 46, - end: 50, - }, - value: Constant( - Constant { - node: Node { - start: 46, - end: 50, - }, - value: true, - }, - ), - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 60, - end: 64, - }, - }, - ), - ], - }, - MatchCase { - node: Node { - start: 69, - end: 98, - }, - pattern: MatchValue( - MatchValue { - node: Node { - start: 74, - end: 79, - }, - value: Constant( - Constant { - node: Node { - start: 74, - end: 79, - }, - value: false, - }, - ), - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 89, - end: 93, - }, - }, - ), - ], - }, - MatchCase { - node: Node { - start: 98, - end: 124, - }, - pattern: MatchValue( - MatchValue { - node: Node { - start: 103, - end: 105, - }, - value: UnaryOp( - UnaryOperation { - node: Node { - start: 103, - end: 105, - }, - op: USub, - operand: Constant( - Constant { - node: Node { - start: 104, - end: 105, - }, - value: 1, - }, - ), - }, - ), - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 115, - end: 119, - }, - }, - ), - ], - }, - MatchCase { - node: Node { - start: 124, - end: 151, - }, - pattern: MatchValue( - MatchValue { - node: Node { - start: 129, - end: 132, - }, - value: Constant( - Constant { - node: Node { - start: 129, - end: 132, - }, - value: 1.0, - }, - ), - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 142, - end: 146, - }, - }, - ), - ], - }, - MatchCase { - node: Node { - start: 151, - end: 171, - }, - pattern: MatchAs( - MatchAs { - node: Node { - start: 156, - end: 157, - }, - name: None, - pattern: None, - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 167, - end: 171, - }, - }, - ), - ], - }, - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-5.snap deleted file mode 100644 index d0fe6265..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-5.snap +++ /dev/null @@ -1,104 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "match a:\n case a.b:\n pass\n case a:\n pass" -input_file: parser/test_data/inputs/one_liners/match.py ---- -Module { - node: Node { - start: 0, - end: 60, - }, - body: [ - Match( - Match { - node: Node { - start: 0, - end: 60, - }, - subject: Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "a", - }, - ), - cases: [ - MatchCase { - node: Node { - start: 13, - end: 40, - }, - pattern: MatchValue( - MatchValue { - node: Node { - start: 18, - end: 21, - }, - value: Attribute( - Attribute { - node: Node { - start: 18, - end: 21, - }, - value: Name( - Name { - node: Node { - start: 18, - end: 17, - }, - id: "a", - }, - ), - attr: "b", - }, - ), - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 31, - end: 35, - }, - }, - ), - ], - }, - MatchCase { - node: Node { - start: 40, - end: 60, - }, - pattern: MatchAs( - MatchAs { - node: Node { - start: 45, - end: 46, - }, - name: Some( - "a", - ), - pattern: None, - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 56, - end: 60, - }, - }, - ), - ], - }, - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-6.snap deleted file mode 100644 index b3510809..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-6.snap +++ /dev/null @@ -1,175 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "match a:\n case (a, b):\n pass\n case {1: _ ,2: _}:\n pass\n case {**rest}:\n pass" -input_file: parser/test_data/inputs/one_liners/match.py ---- -Module { - node: Node { - start: 0, - end: 106, - }, - body: [ - Match( - Match { - node: Node { - start: 0, - end: 106, - }, - subject: Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "a", - }, - ), - cases: [ - MatchCase { - node: Node { - start: 13, - end: 43, - }, - pattern: MatchSequence( - [ - MatchAs( - MatchAs { - node: Node { - start: 19, - end: 20, - }, - name: Some( - "a", - ), - pattern: None, - }, - ), - MatchAs( - MatchAs { - node: Node { - start: 22, - end: 23, - }, - name: Some( - "b", - ), - pattern: None, - }, - ), - ], - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 34, - end: 38, - }, - }, - ), - ], - }, - MatchCase { - node: Node { - start: 43, - end: 79, - }, - pattern: MatchMapping( - MatchMapping { - node: Node { - start: 48, - end: 60, - }, - keys: [ - Constant( - Constant { - node: Node { - start: 49, - end: 50, - }, - value: 1, - }, - ), - Constant( - Constant { - node: Node { - start: 55, - end: 56, - }, - value: 2, - }, - ), - ], - patterns: [ - MatchAs( - MatchAs { - node: Node { - start: 52, - end: 53, - }, - name: None, - pattern: None, - }, - ), - MatchAs( - MatchAs { - node: Node { - start: 58, - end: 59, - }, - name: None, - pattern: None, - }, - ), - ], - rest: None, - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 70, - end: 74, - }, - }, - ), - ], - }, - MatchCase { - node: Node { - start: 79, - end: 106, - }, - pattern: MatchMapping( - MatchMapping { - node: Node { - start: 84, - end: 92, - }, - keys: [], - patterns: [], - rest: Some( - "rest", - ), - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 102, - end: 106, - }, - }, - ), - ], - }, - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-7.snap deleted file mode 100644 index b39849c4..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-7.snap +++ /dev/null @@ -1,197 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "match x:\n case Point2D(0, 0):\n pass\n case Point3D(x=0, y=0, z=0):\n pass" -input_file: parser/test_data/inputs/one_liners/match.py ---- -Module { - node: Node { - start: 0, - end: 91, - }, - body: [ - Match( - Match { - node: Node { - start: 0, - end: 91, - }, - subject: Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "x", - }, - ), - cases: [ - MatchCase { - node: Node { - start: 13, - end: 50, - }, - pattern: MatchClass( - MatchClass { - node: Node { - start: 25, - end: 31, - }, - cls: Name( - Name { - node: Node { - start: 18, - end: 17, - }, - id: "Point2D", - }, - ), - patterns: [ - MatchValue( - MatchValue { - node: Node { - start: 26, - end: 27, - }, - value: Constant( - Constant { - node: Node { - start: 26, - end: 27, - }, - value: 0, - }, - ), - }, - ), - MatchValue( - MatchValue { - node: Node { - start: 29, - end: 30, - }, - value: Constant( - Constant { - node: Node { - start: 29, - end: 30, - }, - value: 0, - }, - ), - }, - ), - ], - kwd_attrs: [], - kwd_patterns: [], - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 41, - end: 45, - }, - }, - ), - ], - }, - MatchCase { - node: Node { - start: 50, - end: 91, - }, - pattern: MatchClass( - MatchClass { - node: Node { - start: 62, - end: 77, - }, - cls: Name( - Name { - node: Node { - start: 55, - end: 54, - }, - id: "Point3D", - }, - ), - patterns: [], - kwd_attrs: [ - "x", - "y", - "z", - ], - kwd_patterns: [ - MatchValue( - MatchValue { - node: Node { - start: 65, - end: 66, - }, - value: Constant( - Constant { - node: Node { - start: 65, - end: 66, - }, - value: 0, - }, - ), - }, - ), - MatchValue( - MatchValue { - node: Node { - start: 70, - end: 71, - }, - value: Constant( - Constant { - node: Node { - start: 70, - end: 71, - }, - value: 0, - }, - ), - }, - ), - MatchValue( - MatchValue { - node: Node { - start: 75, - end: 76, - }, - value: Constant( - Constant { - node: Node { - start: 75, - end: 76, - }, - value: 0, - }, - ), - }, - ), - ], - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 87, - end: 91, - }, - }, - ), - ], - }, - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-8.snap deleted file mode 100644 index c8a1166e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py-8.snap +++ /dev/null @@ -1,89 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "match x:\n case [a, b, c]:\n pass\n" -input_file: parser/test_data/inputs/one_liners/match.py ---- -Module { - node: Node { - start: 0, - end: 42, - }, - body: [ - Match( - Match { - node: Node { - start: 0, - end: 42, - }, - subject: Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "x", - }, - ), - cases: [ - MatchCase { - node: Node { - start: 13, - end: 42, - }, - pattern: MatchSequence( - [ - MatchAs( - MatchAs { - node: Node { - start: 19, - end: 20, - }, - name: Some( - "a", - ), - pattern: None, - }, - ), - MatchAs( - MatchAs { - node: Node { - start: 22, - end: 23, - }, - name: Some( - "b", - ), - pattern: None, - }, - ), - MatchAs( - MatchAs { - node: Node { - start: 25, - end: 26, - }, - name: Some( - "c", - ), - pattern: None, - }, - ), - ], - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 37, - end: 41, - }, - }, - ), - ], - }, - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py.snap deleted file mode 100644 index 7860b157..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@match.py.snap +++ /dev/null @@ -1,66 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "match a:\n case 1:\n pass" -input_file: parser/test_data/inputs/one_liners/match.py ---- -Module { - node: Node { - start: 0, - end: 33, - }, - body: [ - Match( - Match { - node: Node { - start: 0, - end: 33, - }, - subject: Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "a", - }, - ), - cases: [ - MatchCase { - node: Node { - start: 13, - end: 33, - }, - pattern: MatchValue( - MatchValue { - node: Node { - start: 18, - end: 19, - }, - value: Constant( - Constant { - node: Node { - start: 18, - end: 19, - }, - value: 1, - }, - ), - }, - ), - guard: None, - body: [ - Pass( - Pass { - node: Node { - start: 29, - end: 33, - }, - }, - ), - ], - }, - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-10.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-10.snap deleted file mode 100644 index 2d76e08a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-10.snap +++ /dev/null @@ -1,82 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a for a in range(10)}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 22, - }, - body: [ - ExpressionStatement( - SetComp( - SetComp { - node: Node { - start: 0, - end: 22, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 21, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Call( - Call { - node: Node { - start: 12, - end: 21, - }, - func: Name( - Name { - node: Node { - start: 12, - end: 17, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 18, - end: 20, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-11.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-11.snap deleted file mode 100644 index a644ee8c..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-11.snap +++ /dev/null @@ -1,130 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a for a in range(10) for b in range(10)}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 41, - }, - body: [ - ExpressionStatement( - SetComp( - SetComp { - node: Node { - start: 0, - end: 41, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 21, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Call( - Call { - node: Node { - start: 12, - end: 21, - }, - func: Name( - Name { - node: Node { - start: 12, - end: 17, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 18, - end: 20, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - Comprehension { - node: Node { - start: 22, - end: 40, - }, - target: Name( - Name { - node: Node { - start: 26, - end: 27, - }, - id: "b", - }, - ), - iter: Call( - Call { - node: Node { - start: 31, - end: 40, - }, - func: Name( - Name { - node: Node { - start: 31, - end: 36, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 37, - end: 39, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-12.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-12.snap deleted file mode 100644 index 3a74b699..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-12.snap +++ /dev/null @@ -1,130 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a for a in range(10) for b in range(10)\n}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 42, - }, - body: [ - ExpressionStatement( - SetComp( - SetComp { - node: Node { - start: 0, - end: 42, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 21, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Call( - Call { - node: Node { - start: 12, - end: 21, - }, - func: Name( - Name { - node: Node { - start: 12, - end: 17, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 18, - end: 20, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - Comprehension { - node: Node { - start: 22, - end: 41, - }, - target: Name( - Name { - node: Node { - start: 26, - end: 27, - }, - id: "b", - }, - ), - iter: Call( - Call { - node: Node { - start: 31, - end: 41, - }, - func: Name( - Name { - node: Node { - start: 31, - end: 36, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 37, - end: 39, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-13.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-13.snap deleted file mode 100644 index 95fe58b3..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-13.snap +++ /dev/null @@ -1,130 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a for a in range(11) for b in range(10)\n}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 42, - }, - body: [ - ExpressionStatement( - SetComp( - SetComp { - node: Node { - start: 0, - end: 42, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 21, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Call( - Call { - node: Node { - start: 12, - end: 21, - }, - func: Name( - Name { - node: Node { - start: 12, - end: 17, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 18, - end: 20, - }, - value: 11, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - Comprehension { - node: Node { - start: 22, - end: 41, - }, - target: Name( - Name { - node: Node { - start: 26, - end: 27, - }, - id: "b", - }, - ), - iter: Call( - Call { - node: Node { - start: 31, - end: 41, - }, - func: Name( - Name { - node: Node { - start: 31, - end: 36, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 37, - end: 39, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-14.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-14.snap deleted file mode 100644 index 194fae80..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-14.snap +++ /dev/null @@ -1,149 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{\n (a,b) for a in range(11) for b in range(10)\n}\n" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 52, - }, - body: [ - ExpressionStatement( - SetComp( - SetComp { - node: Node { - start: 0, - end: 52, - }, - element: Tuple( - Tuple { - node: Node { - start: 6, - end: 10, - }, - elements: [ - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "b", - }, - ), - ], - }, - ), - generators: [ - Comprehension { - node: Node { - start: 12, - end: 30, - }, - target: Name( - Name { - node: Node { - start: 16, - end: 17, - }, - id: "a", - }, - ), - iter: Call( - Call { - node: Node { - start: 21, - end: 30, - }, - func: Name( - Name { - node: Node { - start: 21, - end: 26, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 27, - end: 29, - }, - value: 11, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - Comprehension { - node: Node { - start: 31, - end: 50, - }, - target: Name( - Name { - node: Node { - start: 35, - end: 36, - }, - id: "b", - }, - ), - iter: Call( - Call { - node: Node { - start: 40, - end: 50, - }, - func: Name( - Name { - node: Node { - start: 40, - end: 45, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 46, - end: 48, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-15.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-15.snap deleted file mode 100644 index c8301e1b..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-15.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{\n (a,b) for a in range(11) for b in range(10)\n}\n" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 2, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-16.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-16.snap deleted file mode 100644 index ffc9a6f0..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-16.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{\n (a,b) for a in range(11) for b in range(10)\n}\n" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -[ - InvalidSyntax { - msg: "Unexpected token NewLine", - input: "", - advice: "", - span: ( - 1, - 2, - ), - }, -] diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-2.snap deleted file mode 100644 index 58be00fb..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-2.snap +++ /dev/null @@ -1,52 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a,\nb, c}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 9, - }, - body: [ - ExpressionStatement( - Set( - Set { - node: Node { - start: 0, - end: 9, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "c", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-3.snap deleted file mode 100644 index 4d4d0f8d..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-3.snap +++ /dev/null @@ -1,52 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a\n, b, c}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 10, - }, - body: [ - ExpressionStatement( - Set( - Set { - node: Node { - start: 0, - end: 10, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 3, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "c", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-4.snap deleted file mode 100644 index 9a42d905..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-4.snap +++ /dev/null @@ -1,52 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a,\nb,\n c}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 13, - }, - body: [ - ExpressionStatement( - Set( - Set { - node: Node { - start: 0, - end: 13, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "c", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-5.snap deleted file mode 100644 index 59e545ca..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-5.snap +++ /dev/null @@ -1,34 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a,\n}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - Set( - Set { - node: Node { - start: 0, - end: 5, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-6.snap deleted file mode 100644 index a920ba56..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-6.snap +++ /dev/null @@ -1,52 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a, b, c,}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 10, - }, - body: [ - ExpressionStatement( - Set( - Set { - node: Node { - start: 0, - end: 10, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "c", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-7.snap deleted file mode 100644 index 2d76e08a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-7.snap +++ /dev/null @@ -1,82 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a for a in range(10)}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 22, - }, - body: [ - ExpressionStatement( - SetComp( - SetComp { - node: Node { - start: 0, - end: 22, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 21, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Call( - Call { - node: Node { - start: 12, - end: 21, - }, - func: Name( - Name { - node: Node { - start: 12, - end: 17, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 18, - end: 20, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-8.snap deleted file mode 100644 index c4ede04f..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-8.snap +++ /dev/null @@ -1,82 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a for a in range(10)\n}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 23, - }, - body: [ - ExpressionStatement( - SetComp( - SetComp { - node: Node { - start: 0, - end: 23, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 22, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Call( - Call { - node: Node { - start: 12, - end: 22, - }, - func: Name( - Name { - node: Node { - start: 12, - end: 17, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 18, - end: 20, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-9.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-9.snap deleted file mode 100644 index 2d76e08a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py-9.snap +++ /dev/null @@ -1,82 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a for a in range(10)}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 22, - }, - body: [ - ExpressionStatement( - SetComp( - SetComp { - node: Node { - start: 0, - end: 22, - }, - element: Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - generators: [ - Comprehension { - node: Node { - start: 3, - end: 21, - }, - target: Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "a", - }, - ), - iter: Call( - Call { - node: Node { - start: 12, - end: 21, - }, - func: Name( - Name { - node: Node { - start: 12, - end: 17, - }, - id: "range", - }, - ), - args: [ - Constant( - Constant { - node: Node { - start: 18, - end: 20, - }, - value: 10, - }, - ), - ], - keywords: [], - starargs: None, - kwargs: None, - }, - ), - ifs: [], - is_async: false, - }, - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py.snap deleted file mode 100644 index 1928df11..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@sets.py.snap +++ /dev/null @@ -1,52 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "{a, b, c}" -input_file: parser/test_data/inputs/one_liners/sets.py ---- -Module { - node: Node { - start: 0, - end: 9, - }, - body: [ - ExpressionStatement( - Set( - Set { - node: Node { - start: 0, - end: 9, - }, - elements: [ - Name( - Name { - node: Node { - start: 1, - end: 2, - }, - id: "a", - }, - ), - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "c", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-2.snap deleted file mode 100644 index 26ad0a64..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-2.snap +++ /dev/null @@ -1,41 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "raw = r'raw_text\\n'" -input_file: parser/test_data/inputs/one_liners/string.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 19, - }, - targets: [ - Name( - Name { - node: Node { - start: 0, - end: 3, - }, - id: "raw", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 6, - end: 19, - }, - value: "raw_text\\n", - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-3.snap deleted file mode 100644 index f353905a..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-3.snap +++ /dev/null @@ -1,41 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "y = \"\"\"multi\"\"\"" -input_file: parser/test_data/inputs/one_liners/string.py ---- -Module { - node: Node { - start: 0, - end: 15, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 15, - }, - targets: [ - Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "y", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 4, - end: 15, - }, - value: "multi", - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-4.snap deleted file mode 100644 index 95090986..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-4.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "raw_err = r'ss\n" -input_file: parser/test_data/inputs/one_liners/string.py ---- -Module { - node: Node { - start: 0, - end: 14, - }, - body: [], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-5.snap deleted file mode 100644 index fd1eccd9..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py-5.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "raw_err = r'ss\n" -input_file: parser/test_data/inputs/one_liners/string.py ---- -[ - InvalidSyntax { - msg: "String not terminated", - input: "raw_err =", - advice: "", - span: ( - 10, - 14, - ), - }, -] diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py.snap deleted file mode 100644 index 3808bb4e..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@string.py.snap +++ /dev/null @@ -1,41 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "x = 'simple text\\n'" -input_file: parser/test_data/inputs/one_liners/string.py ---- -Module { - node: Node { - start: 0, - end: 19, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 19, - }, - targets: [ - Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "x", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 4, - end: 19, - }, - value: "simple text\n", - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-10.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-10.snap deleted file mode 100644 index e6effe04..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-10.snap +++ /dev/null @@ -1,53 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "a[::d,]\n" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 8, - }, - body: [ - ExpressionStatement( - Subscript( - Subscript { - node: Node { - start: 0, - end: 7, - }, - value: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "a", - }, - ), - slice: Slice( - Slice { - node: Node { - start: 2, - end: 5, - }, - lower: None, - upper: Some( - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "d", - }, - ), - ), - step: None, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-2.snap deleted file mode 100644 index 136c9578..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-2.snap +++ /dev/null @@ -1,80 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "values = list_of_key_stats[1::2]" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 32, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 32, - }, - targets: [ - Name( - Name { - node: Node { - start: 0, - end: 6, - }, - id: "values", - }, - ), - ], - value: Subscript( - Subscript { - node: Node { - start: 9, - end: 32, - }, - value: Name( - Name { - node: Node { - start: 9, - end: 26, - }, - id: "list_of_key_stats", - }, - ), - slice: Slice( - Slice { - node: Node { - start: 28, - end: 31, - }, - lower: Some( - Constant( - Constant { - node: Node { - start: 27, - end: 28, - }, - value: 1, - }, - ), - ), - upper: None, - step: Some( - Constant( - Constant { - node: Node { - start: 30, - end: 31, - }, - value: 2, - }, - ), - ), - }, - ), - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-3.snap deleted file mode 100644 index 8302210f..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-3.snap +++ /dev/null @@ -1,41 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "a[b]" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 4, - }, - body: [ - ExpressionStatement( - Subscript( - Subscript { - node: Node { - start: 0, - end: 4, - }, - value: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "a", - }, - ), - slice: Name( - Name { - node: Node { - start: 2, - end: 3, - }, - id: "b", - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-4.snap deleted file mode 100644 index 9b8cd4c2..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-4.snap +++ /dev/null @@ -1,63 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "a[b:c]" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 6, - }, - body: [ - ExpressionStatement( - Subscript( - Subscript { - node: Node { - start: 0, - end: 6, - }, - value: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "a", - }, - ), - slice: Slice( - Slice { - node: Node { - start: 3, - end: 5, - }, - lower: Some( - Name( - Name { - node: Node { - start: 2, - end: 3, - }, - id: "b", - }, - ), - ), - upper: Some( - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "c", - }, - ), - ), - step: None, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-5.snap deleted file mode 100644 index b57c0ba9..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-5.snap +++ /dev/null @@ -1,73 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "a[b:c:d]" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 8, - }, - body: [ - ExpressionStatement( - Subscript( - Subscript { - node: Node { - start: 0, - end: 8, - }, - value: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "a", - }, - ), - slice: Slice( - Slice { - node: Node { - start: 3, - end: 7, - }, - lower: Some( - Name( - Name { - node: Node { - start: 2, - end: 3, - }, - id: "b", - }, - ), - ), - upper: Some( - Name( - Name { - node: Node { - start: 4, - end: 5, - }, - id: "c", - }, - ), - ), - step: Some( - Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "d", - }, - ), - ), - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-6.snap deleted file mode 100644 index 24106aee..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-6.snap +++ /dev/null @@ -1,69 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "a[b, c, d]" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 10, - }, - body: [ - ExpressionStatement( - Subscript( - Subscript { - node: Node { - start: 0, - end: 10, - }, - value: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "a", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 2, - end: 10, - }, - elements: [ - Name( - Name { - node: Node { - start: 2, - end: 3, - }, - id: "b", - }, - ), - Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "c", - }, - ), - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "d", - }, - ), - ], - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-7.snap deleted file mode 100644 index 3c58f61c..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-7.snap +++ /dev/null @@ -1,91 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "a[b, c: d, e]" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 13, - }, - body: [ - ExpressionStatement( - Subscript( - Subscript { - node: Node { - start: 0, - end: 13, - }, - value: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "a", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 2, - end: 13, - }, - elements: [ - Name( - Name { - node: Node { - start: 2, - end: 3, - }, - id: "b", - }, - ), - Slice( - Slice { - node: Node { - start: 6, - end: 9, - }, - lower: Some( - Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "c", - }, - ), - ), - upper: Some( - Name( - Name { - node: Node { - start: 8, - end: 9, - }, - id: "d", - }, - ), - ), - step: None, - }, - ), - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "e", - }, - ), - ], - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-8.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-8.snap deleted file mode 100644 index 097bd0b1..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-8.snap +++ /dev/null @@ -1,43 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "a[::]" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 5, - }, - body: [ - ExpressionStatement( - Subscript( - Subscript { - node: Node { - start: 0, - end: 5, - }, - value: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "a", - }, - ), - slice: Slice( - Slice { - node: Node { - start: 2, - end: 4, - }, - lower: None, - upper: None, - step: None, - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-9.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-9.snap deleted file mode 100644 index a488b6fd..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py-9.snap +++ /dev/null @@ -1,101 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "a[b, c:d:e, f]" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 14, - }, - body: [ - ExpressionStatement( - Subscript( - Subscript { - node: Node { - start: 0, - end: 14, - }, - value: Name( - Name { - node: Node { - start: 0, - end: 1, - }, - id: "a", - }, - ), - slice: Tuple( - Tuple { - node: Node { - start: 2, - end: 14, - }, - elements: [ - Name( - Name { - node: Node { - start: 2, - end: 3, - }, - id: "b", - }, - ), - Slice( - Slice { - node: Node { - start: 6, - end: 10, - }, - lower: Some( - Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "c", - }, - ), - ), - upper: Some( - Name( - Name { - node: Node { - start: 7, - end: 8, - }, - id: "d", - }, - ), - ), - step: Some( - Name( - Name { - node: Node { - start: 9, - end: 10, - }, - id: "e", - }, - ), - ), - }, - ), - Name( - Name { - node: Node { - start: 12, - end: 13, - }, - id: "f", - }, - ), - ], - }, - ), - }, - ), - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py.snap deleted file mode 100644 index e3aa8219..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@subscript.py.snap +++ /dev/null @@ -1,80 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "indices = list_of_key_stats[0::2]" -input_file: parser/test_data/inputs/one_liners/subscript.py ---- -Module { - node: Node { - start: 0, - end: 33, - }, - body: [ - AssignStatement( - Assign { - node: Node { - start: 0, - end: 33, - }, - targets: [ - Name( - Name { - node: Node { - start: 0, - end: 7, - }, - id: "indices", - }, - ), - ], - value: Subscript( - Subscript { - node: Node { - start: 10, - end: 33, - }, - value: Name( - Name { - node: Node { - start: 10, - end: 27, - }, - id: "list_of_key_stats", - }, - ), - slice: Slice( - Slice { - node: Node { - start: 29, - end: 32, - }, - lower: Some( - Constant( - Constant { - node: Node { - start: 28, - end: 29, - }, - value: 0, - }, - ), - ), - upper: None, - step: Some( - Constant( - Constant { - node: Node { - start: 31, - end: 32, - }, - value: 2, - }, - ), - ), - }, - ), - }, - ), - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-2.snap deleted file mode 100644 index a5b102ef..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-2.snap +++ /dev/null @@ -1,59 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "with a as b: pass" -input_file: parser/test_data/inputs/one_liners/with.py ---- -Module { - node: Node { - start: 0, - end: 17, - }, - body: [ - WithStatement( - With { - node: Node { - start: 0, - end: 17, - }, - items: [ - WithItem { - node: Node { - start: 5, - end: 11, - }, - context_expr: Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "a", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 10, - end: 11, - }, - id: "b", - }, - ), - ), - }, - ], - body: [ - Pass( - Pass { - node: Node { - start: 13, - end: 17, - }, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-3.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-3.snap deleted file mode 100644 index dad6a150..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-3.snap +++ /dev/null @@ -1,85 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "with a as b, c as d: pass" -input_file: parser/test_data/inputs/one_liners/with.py ---- -Module { - node: Node { - start: 0, - end: 25, - }, - body: [ - WithStatement( - With { - node: Node { - start: 0, - end: 25, - }, - items: [ - WithItem { - node: Node { - start: 5, - end: 11, - }, - context_expr: Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "a", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 10, - end: 11, - }, - id: "b", - }, - ), - ), - }, - WithItem { - node: Node { - start: 13, - end: 19, - }, - context_expr: Name( - Name { - node: Node { - start: 13, - end: 14, - }, - id: "c", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 18, - end: 19, - }, - id: "d", - }, - ), - ), - }, - ], - body: [ - Pass( - Pass { - node: Node { - start: 21, - end: 25, - }, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-4.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-4.snap deleted file mode 100644 index 72e0a603..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-4.snap +++ /dev/null @@ -1,85 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "with (a as b, c as d): pass" -input_file: parser/test_data/inputs/one_liners/with.py ---- -Module { - node: Node { - start: 0, - end: 27, - }, - body: [ - WithStatement( - With { - node: Node { - start: 0, - end: 27, - }, - items: [ - WithItem { - node: Node { - start: 6, - end: 12, - }, - context_expr: Name( - Name { - node: Node { - start: 6, - end: 7, - }, - id: "a", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "b", - }, - ), - ), - }, - WithItem { - node: Node { - start: 14, - end: 20, - }, - context_expr: Name( - Name { - node: Node { - start: 14, - end: 15, - }, - id: "c", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 19, - end: 20, - }, - id: "d", - }, - ), - ), - }, - ], - body: [ - Pass( - Pass { - node: Node { - start: 23, - end: 27, - }, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-5.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-5.snap deleted file mode 100644 index 65a915e7..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-5.snap +++ /dev/null @@ -1,59 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "async with a as b: pass" -input_file: parser/test_data/inputs/one_liners/with.py ---- -Module { - node: Node { - start: 0, - end: 23, - }, - body: [ - AsyncWithStatement( - AsyncWith { - node: Node { - start: 0, - end: 23, - }, - items: [ - WithItem { - node: Node { - start: 11, - end: 17, - }, - context_expr: Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "a", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 16, - end: 17, - }, - id: "b", - }, - ), - ), - }, - ], - body: [ - Pass( - Pass { - node: Node { - start: 19, - end: 23, - }, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-6.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-6.snap deleted file mode 100644 index 039908b2..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-6.snap +++ /dev/null @@ -1,85 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "async with a as b, c as d:\n pass" -input_file: parser/test_data/inputs/one_liners/with.py ---- -Module { - node: Node { - start: 0, - end: 35, - }, - body: [ - AsyncWithStatement( - AsyncWith { - node: Node { - start: 0, - end: 35, - }, - items: [ - WithItem { - node: Node { - start: 11, - end: 17, - }, - context_expr: Name( - Name { - node: Node { - start: 11, - end: 12, - }, - id: "a", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 16, - end: 17, - }, - id: "b", - }, - ), - ), - }, - WithItem { - node: Node { - start: 19, - end: 25, - }, - context_expr: Name( - Name { - node: Node { - start: 19, - end: 20, - }, - id: "c", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 24, - end: 25, - }, - id: "d", - }, - ), - ), - }, - ], - body: [ - Pass( - Pass { - node: Node { - start: 31, - end: 35, - }, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-7.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-7.snap deleted file mode 100644 index 0a78b373..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py-7.snap +++ /dev/null @@ -1,105 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "async with (\n a as b, c as d\n):\n a = 1\n" -input_file: parser/test_data/inputs/one_liners/with.py ---- -Module { - node: Node { - start: 0, - end: 49, - }, - body: [ - AsyncWithStatement( - AsyncWith { - node: Node { - start: 0, - end: 49, - }, - items: [ - WithItem { - node: Node { - start: 21, - end: 27, - }, - context_expr: Name( - Name { - node: Node { - start: 21, - end: 22, - }, - id: "a", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 26, - end: 27, - }, - id: "b", - }, - ), - ), - }, - WithItem { - node: Node { - start: 29, - end: 35, - }, - context_expr: Name( - Name { - node: Node { - start: 29, - end: 30, - }, - id: "c", - }, - ), - optional_vars: Some( - Name( - Name { - node: Node { - start: 34, - end: 35, - }, - id: "d", - }, - ), - ), - }, - ], - body: [ - AssignStatement( - Assign { - node: Node { - start: 43, - end: 48, - }, - targets: [ - Name( - Name { - node: Node { - start: 43, - end: 44, - }, - id: "a", - }, - ), - ], - value: Constant( - Constant { - node: Node { - start: 47, - end: 48, - }, - value: 1, - }, - ), - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py.snap deleted file mode 100644 index 850e3ea8..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__one_liners@with.py.snap +++ /dev/null @@ -1,49 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "with a: pass" -input_file: parser/test_data/inputs/one_liners/with.py ---- -Module { - node: Node { - start: 0, - end: 12, - }, - body: [ - WithStatement( - With { - node: Node { - start: 0, - end: 12, - }, - items: [ - WithItem { - node: Node { - start: 5, - end: 6, - }, - context_expr: Name( - Name { - node: Node { - start: 5, - end: 6, - }, - id: "a", - }, - ), - optional_vars: None, - }, - ], - body: [ - Pass( - Pass { - node: Node { - start: 8, - end: 12, - }, - }, - ), - ], - }, - ), - ], -} diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__separate_statements-2.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__separate_statements-2.snap deleted file mode 100644 index 9e9e45c3..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__separate_statements-2.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "# Test case to check that we return correct error when two python statements are on the same line\n\ndef foo():\n x = 1; y = 2\n return x + y\n\ndef bar():\n x = 1 y = 2\n return x + y\n\na = 1 b = 2\n" ---- -[ - InvalidSyntax { - msg: "Statement does not end in new line or semicolon", - input: " x = 1", - advice: "Split the statements into two separate lines or add a semicolon", - span: ( - 160, - 165, - ), - }, - InvalidSyntax { - msg: "Statement does not end in new line or semicolon", - input: "a = 1", - advice: "Split the statements into two separate lines or add a semicolon", - span: ( - 190, - 195, - ), - }, -] diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-12.snap b/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-12.snap deleted file mode 100644 index f8675dc7..00000000 --- a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-12.snap +++ /dev/null @@ -1,51 +0,0 @@ ---- -source: parser/src/parser/parser.rs -description: "f'a_{1}' 'b' " ---- -Module { - node: Node { - start: 0, - end: 12, - }, - body: [ - ExpressionStatement( - JoinedStr( - JoinedStr { - node: Node { - start: 0, - end: 12, - }, - values: [ - Constant( - Constant { - node: Node { - start: 0, - end: 4, - }, - value: "a_", - }, - ), - Constant( - Constant { - node: Node { - start: 5, - end: 6, - }, - value: 1, - }, - ), - Constant( - Constant { - node: Node { - start: 0, - end: 12, - }, - value: "b", - }, - ), - ], - }, - ), - ), - ], -} diff --git a/parser/src/utils.rs b/parser/src/utils.rs deleted file mode 100644 index 447e9169..00000000 --- a/parser/src/utils.rs +++ /dev/null @@ -1,4 +0,0 @@ -use crate::{ - token::{Kind, Token}, - Lexer, -}; diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__annotated_assignment.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-3.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref-4.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__attribute_ref.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__attribute_ref.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__attribute_ref.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__await_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__await_expression.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__await_expression.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__binary_op.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__binary_op.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__binary_op.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__binary_op.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__class.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__class.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__class.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comments.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comments.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comments.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comments.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-10.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-10.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-10.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-11.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-11.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-11.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-2.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-4.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-5.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-5.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-6.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-6.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-7.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-7.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-8.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-8.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-9.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison-9.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison-9.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__comparison.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__comparison.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__conditional_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__conditional_expression.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__conditional_expression.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__dict.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__dict.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__dict.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__ellipsis_statement-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-2.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__ellipsis_statement-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__ellipsis_statement-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-4.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__ellipsis_statement-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement-4.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__ellipsis_statement.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__ellipsis_statement.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__ellipsis_statement.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__for.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__for.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__for.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__from_import.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__from_import.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__from_import.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__from_import.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__fstring-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__fstring-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-2.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__fstring-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__fstring-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__fstring-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__fstring-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring-4.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__fstring.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__fstring.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__fstring.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__function_def.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__function_def.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__function_def.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__functions.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__functions.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__functions.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__generator_expressions.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__generator_expressions.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__generator_expressions.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__if.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__if.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__indentation.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__indentation.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__indentation.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__indentation.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-2.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-4.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-5.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-5.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-6.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-6.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-7.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-7.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-8.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-8.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-9.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda-9.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda-9.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lambda.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lambda.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lists.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__lists.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__lists.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__match.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__match.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__match.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__named_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__named_expression.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__named_expression.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__newlines.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__newlines.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__newlines.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-2.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-3.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt-3.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assert_stmt.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-10.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-11.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-12.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-13.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-14.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-15.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-16.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-17.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-18.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-19.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-20.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-21.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-22.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-23.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-24.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-25.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-26.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-27.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-28.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-3.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-4.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-5.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-6.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-7.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-8.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment-9.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_assignment.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_assignment.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-3.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op-4.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_bool_op.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_break_continue-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_break_continue-2.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_break_continue-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_break_continue-2.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_break_continue.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_break_continue.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_break_continue.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_break_continue.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_call-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_call-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-3.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_call-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-4.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_call-5.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-5.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_call-6.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-6.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_call-7.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-7.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_call-8.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call-8.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_call.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_call.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_call.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt-3.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_del_stmt.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-3.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op-4.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_unary_op.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-3.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement-4.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_yield_statement.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__parse_yield_statement.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__parse_yield_statement.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__pass_stmt-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__pass_stmt-2.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__pass_stmt-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__pass_stmt-2.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__pass_stmt-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__pass_stmt-3.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__pass_stmt-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__pass_stmt-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__pass_stmt.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__pass_stmt.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__pass_stmt.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__pass_stmt.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__raise_statement.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__raise_statement.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__raise_statement.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__separate_statements.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__separate_statements.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__separate_statements.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__sets.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__sets.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__sets.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__starred.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__starred.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__starred.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-10.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-10.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-10.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-10.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-11.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-11.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-11.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-11.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-2.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-2.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-3.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-4.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-4.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-5.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-5.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-5.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-6.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-6.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-6.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-7.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-7.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-7.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-7.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-8.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-8.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-8.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-8.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-9.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-9.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-9.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation-9.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__string_literal_concatnation.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__string_literal_concatnation.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__subscript.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__subscript.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__subscript.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__try.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__try.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__try.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__try_statement-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__try_statement-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-3.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__try_statement-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-4.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__try_statement-5.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-5.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__try_statement-6.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement-6.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__try_statement.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__try_statement.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__try_statement.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-2.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-2.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-3.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-4.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-4.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-4.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-5.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-5.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-5.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-6.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple-6.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple-6.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__tuple.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__tuple.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__while_statement-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__while_statement-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__while_statement.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__while_statement.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__while_statement.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__with.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__with.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__with.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-2.snap diff --git a/parser/src/parser/snapshots/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 similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression-3.snap diff --git a/parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__yield_expression.snap b/parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression.snap similarity index 100% rename from parser/src/parser/snapshots/enderpy_python_parser__parser__parser__tests__yield_expression.snap rename to parser/test_data/output/enderpy_python_parser__parser__parser__tests__yield_expression.snap