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

Function dunder_attr_slot

mypyc/codegen/emitclass.py:54–57  ·  view source on GitHub ↗
(cl: ClassIR, fn: FuncIR, emitter: Emitter)

Source from the content-addressed store, hash-verified

52
53
54def dunder_attr_slot(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> str:
55 wrapper_fn = cl.get_method(fn.name + "__wrapper")
56 assert wrapper_fn
57 return f"{NATIVE_PREFIX}{wrapper_fn.cname(emitter.names)}"
58
59
60# We maintain a table from dunder function names to struct slots they

Callers

nothing calls this directly

Calls 2

get_methodMethod · 0.45
cnameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…