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

Function apply_method_specialization

mypyc/irbuild/specialize.py:212–217  ·  view source on GitHub ↗

Invoke the Specializer callback for a method if one has been registered

(
    builder: IRBuilder, expr: CallExpr, callee: MemberExpr, typ: RType | None = None
)

Source from the content-addressed store, hash-verified

210
211
212def apply_method_specialization(
213 builder: IRBuilder, expr: CallExpr, callee: MemberExpr, typ: RType | None = None
214) -> Value | None:
215 """Invoke the Specializer callback for a method if one has been registered"""
216 name = callee.fullname if typ is None else callee.name
217 return _apply_specialization(builder, expr, callee, name, typ)
218
219
220def specialize_function(

Callers 2

transform_call_exprFunction · 0.90
translate_method_callFunction · 0.90

Calls 1

_apply_specializationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…