Skip to content

Commit 0aaa011

Browse files
committed
Fix selfcheck
1 parent bebdf28 commit 0aaa011

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/semanal_typeargs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ def visit_type_alias_type(self, t: TypeAliasType) -> None:
102102
# If there was already an error for the alias itself, there is no point in checking
103103
# the expansion, most likely it will result in the same kind of error.
104104
get_proper_type(t).accept(self)
105-
self.visit_optional_type(t.alias)
105+
if t.alias is not None:
106+
t.alias.accept(self)
106107

107108
def visit_tuple_type(self, t: TupleType) -> None:
108109
t.items = flatten_nested_tuples(t.items)

0 commit comments

Comments
 (0)