MCPcopy Create free account
hub / github.com/python/mypy / vtable_entry

Method vtable_entry

mypyc/ir/class_ir.py:254–257  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

252 return None
253
254 def vtable_entry(self, name: str) -> int:
255 assert self.vtable is not None, "vtable not computed yet"
256 assert name in self.vtable, f"{self.name!r} has no attribute {name!r}"
257 return self.vtable[name]
258
259 def attr_details(self, name: str) -> tuple[RType, ClassIR]:
260 for ir in self.mro:

Callers 2

getter_indexMethod · 0.80
method_indexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected