Skip to content

Commit

Permalink
Add visit_overloaded to TypeQuery
Browse files Browse the repository at this point in the history
Part of python#730
  • Loading branch information
JamesGuthrie committed Aug 24, 2015
1 parent 89e5c04 commit d8ef5f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mypy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,9 @@ def visit_star_type(self, t: StarType) -> bool:
def visit_union_type(self, t: UnionType) -> bool:
return self.query_types(t.items)

def visit_overloaded(self, t: Overloaded) -> bool:
return self.query_types(t.items())

def query_types(self, types: List[Type]) -> bool:
"""Perform a query for a list of types.
Expand Down

0 comments on commit d8ef5f0

Please sign in to comment.