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

Method real_base

mypyc/ir/class_ir.py:248–252  ·  view source on GitHub ↗

Return the actual concrete base class, if there is one.

(self)

Source from the content-addressed store, hash-verified

246 return f"{self.module_name}.{self.name}"
247
248 def real_base(self) -> ClassIR | None:
249 """Return the actual concrete base class, if there is one."""
250 if len(self.mro) > 1 and not self.mro[1].is_trait:
251 return self.mro[1]
252 return None
253
254 def vtable_entry(self, name: str) -> int:
255 assert self.vtable is not None, "vtable not computed yet"

Callers 1

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected