Skip to content

Commit 0a3cadd

Browse files
committed
Python: Update parser test output
It seems that with a newer version of tree-sitter, we no longer parse the (not actually valid!) syntax `Spam[**P2]` as if the `**` is an exponentiation operation (with a missing left operand).
1 parent e07e213 commit 0a3cadd

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

python/extractor/tests/parser/types_new.expected

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -338,16 +338,9 @@ Module: [1, 0] - [23, 0]
338338
variable: Variable('Spam', None)
339339
ctx: Load
340340
index:
341-
BinOp: [20, 36] - [20, 40]
342-
left:
343-
Name: [20, 36] - [20, 36]
344-
variable: Variable('', None)
345-
ctx: Load
346-
op: Pow
347-
right:
348-
Name: [20, 38] - [20, 40]
349-
variable: Variable('P2', None)
350-
ctx: Load
341+
Name: [20, 38] - [20, 40]
342+
variable: Variable('P2', None)
343+
ctx: Load
351344
ctx: Load
352345
TypeAlias: [21, 0] - [21, 41]
353346
name:

0 commit comments

Comments
 (0)