Skip to content

Commit da7080f

Browse files
JamesGuthrieJukkaL
authored andcommitted
Add visit_overloaded() to TypeQuery
Part of #730
1 parent d86fc75 commit da7080f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypy/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,9 @@ def visit_star_type(self, t: StarType) -> bool:
831831
def visit_union_type(self, t: UnionType) -> bool:
832832
return self.query_types(t.items)
833833

834+
def visit_overloaded(self, t: Overloaded) -> bool:
835+
return self.query_types(cast(List[Type], t.items()))
836+
834837
def query_types(self, types: List[Type]) -> bool:
835838
"""Perform a query for a list of types.
836839

0 commit comments

Comments
 (0)