MCPcopy Index your code
hub / github.com/python/mypy / expand_without_binding

Function expand_without_binding

mypy/checkmember.py:954–962  ·  view source on GitHub ↗
(
    typ: Type, var: Var, itype: Instance, original_itype: Instance, mx: MemberContext
)

Source from the content-addressed store, hash-verified

952
953
954def expand_without_binding(
955 typ: Type, var: Var, itype: Instance, original_itype: Instance, mx: MemberContext
956) -> Type:
957 if not mx.preserve_type_var_ids:
958 typ = freshen_all_functions_type_vars(typ)
959 typ = expand_self_type_if_needed(typ, mx, var, original_itype)
960 expanded = expand_type_by_instance(typ, itype)
961 freeze_all_type_vars(expanded)
962 return expanded
963
964
965def expand_and_bind_callable(

Callers 1

analyze_varFunction · 0.85

Calls 4

expand_type_by_instanceFunction · 0.90
freeze_all_type_varsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…