Skip to content

Commit 812450f

Browse files
committed
Remove StarType visitors
1 parent e43b1f8 commit 812450f

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

mypy/expandtype.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
PlaceholderType,
2626
ProperType,
2727
RawExpressionType,
28-
StarType,
2928
SyntheticTypeVisitor,
3029
TupleType,
3130
Type,
@@ -513,9 +512,6 @@ def visit_type_alias_type(self, t: TypeAliasType) -> Type:
513512
def expand_types(self, types: Iterable[Type]) -> list[Type]:
514513
return [t.accept(self) for t in types]
515514

516-
def visit_star_type(self, t: StarType) -> Type:
517-
return t
518-
519515
def visit_type_list(self, t: TypeList) -> Type:
520516
return t
521517

mypy/tvar_scope.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
PartialType,
2929
PlaceholderType,
3030
RawExpressionType,
31-
StarType,
3231
TupleType,
3332
TypeAliasType,
3433
TypedDictType,
@@ -89,9 +88,6 @@ def visit_union_type(self, t: UnionType) -> Iterator[TypeVarLikeType]:
8988
def visit_type_type(self, t: TypeType) -> Iterator[TypeVarLikeType]:
9089
yield from t.item.accept(self)
9190

92-
def visit_star_type(self, t: StarType) -> Iterator[TypeVarLikeType]:
93-
yield from ()
94-
9591
def visit_type_list(self, t: TypeList) -> Iterator[TypeVarLikeType]:
9692
yield from ()
9793

0 commit comments

Comments
 (0)