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

Method __init__

mypyc/irbuild/classdef.py:317–320  ·  view source on GitHub ↗
(self, builder: IRBuilder, cdef: ClassDef)

Source from the content-addressed store, hash-verified

315
316class ExtClassBuilder(ClassBuilder):
317 def __init__(self, builder: IRBuilder, cdef: ClassDef) -> None:
318 super().__init__(builder, cdef)
319 # If the class is not decorated, generate an extension class for it.
320 self.type_obj: Value = allocate_class(builder, cdef)
321
322 def class_body_obj(self) -> Value | None:
323 return self.type_obj

Callers

nothing calls this directly

Calls 2

allocate_classFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected