Skip to content

Commit

Permalink
Update TypeQuery visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Dec 31, 2022
1 parent 7223ce0 commit 168f803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypy/type_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ def visit_type_var(self, t: TypeVarType) -> T:
return self.query_types([t.upper_bound, t.default] + t.values)

def visit_param_spec(self, t: ParamSpecType) -> T:
return self.strategy([])
return self.query_types([t.default])

def visit_type_var_tuple(self, t: TypeVarTupleType) -> T:
return self.strategy([])
return self.query_types([t.default])

def visit_unpack_type(self, t: UnpackType) -> T:
return self.query_types([t.type])
Expand Down

0 comments on commit 168f803

Please sign in to comment.