Skip to content

Commit 7217f8b

Browse files
committed
Add more variations to the testcase
1 parent a63b5c9 commit 7217f8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test-data/unit/check-python312.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,10 @@ class Z: ... # E: Name "Z" already defined on line 2
20352035
class A[*Ts]: ...
20362036

20372037
A[*tuple[int, ...], *tuple[int, ...]] # E: More than one Unpack in a type is not allowed
2038+
a: A[*tuple[int, ...], *tuple[int, ...]] # E: More than one Unpack in a type is not allowed
2039+
def foo(a: A[*tuple[int, ...], *tuple[int, ...]]): ... # E: More than one Unpack in a type is not allowed
20382040

2041+
tuple[*tuple[int, ...], *tuple[int, ...]] # E: More than one Unpack in a type is not allowed
20392042
b: tuple[*tuple[int, ...], *tuple[int, ...]] # E: More than one Unpack in a type is not allowed
20402043
[builtins fixtures/tuple.pyi]
20412044
[typing fixtures/typing-full.pyi]

0 commit comments

Comments
 (0)