Skip to content

Commit a653243

Browse files
authored
Delete unpacking type alias tests for Python versions
Remove tests for unpacking type aliases in Python 3.10 and 3.11.
1 parent f921b76 commit a653243

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

test-data/unit/check-type-aliases.test

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,36 +1237,6 @@ Ta2 = TypeAliasType("Ta2", None, type_params=(Unpack[Ts],)) # E: Free type vari
12371237

12381238
[builtins fixtures/tuple.pyi]
12391239

1240-
[case testGenericTypeAliasArgOfTypeAliasIsUnpackedTuple]
1241-
# flags: --python-version 3.11
1242-
from typing_extensions import TypeAlias
1243-
from typing import TypeVarTuple, Unpack
1244-
1245-
Ts = TypeVarTuple('Ts')
1246-
TA: TypeAlias = tuple[Unpack[Ts]]
1247-
1248-
# Only "Test suite with py310-ubuntu, mypyc-compiled" expects: Invalid syntax; you likely need to run mypy using Python 3.11 or newer
1249-
# The other tests expect: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1250-
# v1: TA[*list[int]]
1251-
1252-
v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1253-
[builtins fixtures/tuple.pyi]
1254-
1255-
[case testGenericTypeAliasArgOfTypeAliasIsUnpackedTuple310]
1256-
# flags: --python-version 3.10
1257-
from typing_extensions import TypeAlias
1258-
from typing import TypeVarTuple, Unpack
1259-
1260-
Ts = TypeVarTuple('Ts')
1261-
TA: TypeAlias = tuple[Unpack[Ts]]
1262-
1263-
# Only "Test suite with py310-ubuntu, mypyc-compiled" expects: Invalid syntax
1264-
# The other tests expect: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1265-
# v1: TA[*list[int]]
1266-
1267-
v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1268-
[builtins fixtures/tuple.pyi]
1269-
12701240
[case testAliasInstanceNameClash]
12711241
from lib import func
12721242
class A: ...

0 commit comments

Comments
 (0)