Skip to content

Commit 9a04315

Browse files
committed
remove type statement restrictions unsupported by spec or PEP
1 parent 9ba065d commit 9a04315

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

conformance/tests/aliases_type_statement.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ def func2(x: object):
4848
type BadTypeAlias12 = list or set # E
4949
type BadTypeAlias13 = f"{'int'}" # E
5050

51-
type BadTypeAlias14 = int # E[TA14]: redeclared
52-
type BadTypeAlias14 = int # E[TA14]: redeclared
53-
54-
55-
def func3():
56-
type BadTypeAlias15 = int # E: alias not allowed in function
57-
58-
59-
6051
V = TypeVar("V")
6152

6253
type TA1[K] = dict[K, V] # E: combines old and new TypeVars

0 commit comments

Comments
 (0)