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

Function get_native_impl_ids

mypyc/irbuild/function.py:1176–1181  ·  view source on GitHub ↗

Return a dict of registered implementation to native implementation ID for all implementations

(builder: IRBuilder, singledispatch_func: FuncDef)

Source from the content-addressed store, hash-verified

1174
1175
1176def get_native_impl_ids(builder: IRBuilder, singledispatch_func: FuncDef) -> dict[FuncDef, int]:
1177 """Return a dict of registered implementation to native implementation ID for all
1178 implementations
1179 """
1180 impls = builder.singledispatch_impls[singledispatch_func]
1181 return {impl: i for i, (typ, impl) in enumerate(impls) if not is_decorated(builder, impl)}
1182
1183
1184def gen_property_getter_ir(

Callers 2

Calls 2

enumerateFunction · 0.85
is_decoratedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…