Skip to content

Commit

Permalink
Remove StarType visitors
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Mar 7, 2023
1 parent e43b1f8 commit 812450f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions mypy/expandtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
PlaceholderType,
ProperType,
RawExpressionType,
StarType,
SyntheticTypeVisitor,
TupleType,
Type,
Expand Down Expand Up @@ -513,9 +512,6 @@ def visit_type_alias_type(self, t: TypeAliasType) -> Type:
def expand_types(self, types: Iterable[Type]) -> list[Type]:
return [t.accept(self) for t in types]

def visit_star_type(self, t: StarType) -> Type:
return t

def visit_type_list(self, t: TypeList) -> Type:
return t

Expand Down
4 changes: 0 additions & 4 deletions mypy/tvar_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
PartialType,
PlaceholderType,
RawExpressionType,
StarType,
TupleType,
TypeAliasType,
TypedDictType,
Expand Down Expand Up @@ -89,9 +88,6 @@ def visit_union_type(self, t: UnionType) -> Iterator[TypeVarLikeType]:
def visit_type_type(self, t: TypeType) -> Iterator[TypeVarLikeType]:
yield from t.item.accept(self)

def visit_star_type(self, t: StarType) -> Iterator[TypeVarLikeType]:
yield from ()

def visit_type_list(self, t: TypeList) -> Iterator[TypeVarLikeType]:
yield from ()

Expand Down

0 comments on commit 812450f

Please sign in to comment.