summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2022-05-16 20:42:29 -0400
committerAnthony Sottile <asottile@umich.edu>2022-05-16 20:43:36 -0400
commite72afc551f1fa178cb753e1ec164803655ba5692 (patch)
tree0423c433caf722ca612d6c9f57d57a0155845a94 /testsuite
parenta7938390f6eb1a3e2880f512223af03b844a7de7 (diff)
downloadpep8-e72afc551f1fa178cb753e1ec164803655ba5692.tar.gz
add python3.11 support (except* and a[*b])
Diffstat (limited to 'testsuite')
-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]:
+ ...