Skip to content

Commit 9802ad7

Browse files
committed
Python: Update types_new.py and test output
1 parent 235822d commit 9802ad7

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

python/extractor/tests/parser/types_new.expected

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -308,40 +308,6 @@ Module: [1, 0] - [23, 0]
308308
]
309309
ctx: Load
310310
ctx: Load
311-
TypeAlias: [20, 0] - [20, 41]
312-
name:
313-
Name: [20, 5] - [20, 9]
314-
variable: Variable('Baz2', None)
315-
ctx: Store
316-
type_parameters: [
317-
ParamSpec: [20, 10] - [20, 27]
318-
name:
319-
Name: [20, 12] - [20, 14]
320-
variable: Variable('P2', None)
321-
ctx: Store
322-
default:
323-
List: [20, 17] - [20, 27]
324-
elts: [
325-
Name: [20, 18] - [20, 21]
326-
variable: Variable('int', None)
327-
ctx: Load
328-
Name: [20, 23] - [20, 26]
329-
variable: Variable('str', None)
330-
ctx: Load
331-
]
332-
ctx: Load
333-
]
334-
value:
335-
Subscript: [20, 31] - [20, 41]
336-
value:
337-
Name: [20, 31] - [20, 35]
338-
variable: Variable('Spam', None)
339-
ctx: Load
340-
index:
341-
Name: [20, 38] - [20, 40]
342-
variable: Variable('P2', None)
343-
ctx: Load
344-
ctx: Load
345311
TypeAlias: [21, 0] - [21, 41]
346312
name:
347313
Name: [21, 5] - [21, 9]

python/extractor/tests/parser/types_new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ class Qux1[*Ts1 = *tuple[int, bool]]: ...
1717

1818
# TypeAliases
1919
type Foo2[T15, U1 = str] = Bar1[T15, U1]
20-
type Baz2[**P2 = [int, str]] = Spam[**P2]
20+
# type Baz2[**P2 = [int, str]] = Spam[**P2] # From the PEP, but this is not actually valid syntax!
2121
type Qux2[*Ts2 = *tuple[str]] = Ham[*Ts2]
2222
type Rab[U2, T15 = str] = Bar2[T15, U2]

0 commit comments

Comments
 (0)