summaryrefslogtreecommitdiff
path: root/testsuite/python311.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/python311.py')
-rw-r--r--testsuite/python311.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/python311.py b/testsuite/python311.py
new file mode 100644
index 0000000..a405125
--- /dev/null
+++ b/testsuite/python311.py
@@ -0,0 +1,23 @@
+#: Okay
+try:
+ ...
+except* OSError as e:
+ pass
+#: Okay
+from typing import Generic
+from typing import TypeVarTuple
+
+
+Ts = TypeVarTuple('Ts')
+
+
+class Shape(Generic[*Ts]):
+ pass
+
+
+def f(*args: *Ts) -> None:
+ ...
+
+
+def g(x: Shape[*Ts]) -> Shape[*Ts]:
+ ...