MCPcopy
hub / github.com/python/mypy / get_vars

Function get_vars

mypy/solve.py:560–562  ·  view source on GitHub ↗

Find type variables for which we are solving in a target type.

(target: Type, vars: list[TypeVarId])

Source from the content-addressed store, hash-verified

558
559
560def get_vars(target: Type, vars: list[TypeVarId]) -> set[TypeVarId]:
561 """Find type variables for which we are solving in a target type."""
562 return {tv.id for tv in get_all_type_vars(target)} & set(vars)
563
564
565def pre_validate_solutions(

Callers 3

solve_constraintsFunction · 0.85
compute_dependenciesFunction · 0.85
check_linearFunction · 0.85

Calls 2

get_all_type_varsFunction · 0.90
setClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…