You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`mypy.checkexpr.HasTypeVarQuery` has only one usage and is virtually[^1]
identical to `mypy.types.HasTypeVars`. Merging them seems sensible. The
latter has wider usage via `has_type_vars`, so it seems like the better
one to keep.
Some history for the record:
* `mypy.checkexpr.HasTypeVarQuery` was added in 12 years ago
a40efb4
* `mypy.types.HasTypeVars` was added 5 years ago in
59617e8
[^1]: the only difference is that `HasTypeVars` sets
`self.skip_alias_target = True`, but this seem to fit the usage of
`HasTypeVarQuery` just as well.
0 commit comments