We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
types_new.py
1 parent afa7195 commit b90a358Copy full SHA for b90a358
2 files changed
python/extractor/tests/parser/types_new.expected
@@ -308,40 +308,6 @@ Module: [1, 0] - [23, 0]
308
]
309
ctx: Load
310
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
319
- Name: [20, 12] - [20, 14]
320
- variable: Variable('P2', None)
321
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
331
- ]
332
333
334
- value:
335
- Subscript: [20, 31] - [20, 41]
336
337
- Name: [20, 31] - [20, 35]
338
- variable: Variable('Spam', None)
339
340
- index:
341
- Name: [20, 38] - [20, 40]
342
343
344
345
TypeAlias: [21, 0] - [21, 41]
346
name:
347
Name: [21, 5] - [21, 9]
python/extractor/tests/parser/types_new.py
@@ -17,6 +17,6 @@ class Qux1[*Ts1 = *tuple[int, bool]]: ...
17
18
# TypeAliases
19
type Foo2[T15, U1 = str] = Bar1[T15, U1]
20
-type Baz2[**P2 = [int, str]] = Spam[**P2]
+# type Baz2[**P2 = [int, str]] = Spam[**P2] # From the PEP, but this is not actually valid syntax!
21
type Qux2[*Ts2 = *tuple[str]] = Ham[*Ts2]
22
type Rab[U2, T15 = str] = Bar2[T15, U2]
0 commit comments