We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24d98ee commit 1ced5b4Copy full SHA for 1ced5b4
1 file changed
python/extractor/tests/parser/types_new.py
@@ -3,3 +3,20 @@
3
def f[T6, T7: E2, *T8, **T9](): ...
4
5
class C[T10, T11: E3, *T12, **T13]: ...
6
+
7
+# From PEP-696 (https://peps.python.org/pep-0696/#grammar-changes):
8
9
+# TypeVars
10
+class Foo1[T14 = str]: ...
11
12
+# ParamSpecs
13
+class Baz1[**P1 = [int, str]]: ...
14
15
+# TypeVarTuples
16
+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]
21
+type Qux2[*Ts2 = *tuple[str]] = Ham[*Ts2]
22
+type Rab[U2, T15 = str] = Bar2[T15, U2]
0 commit comments