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

Function load_non_ext_class

mypyc/irbuild/classdef.py:905–915  ·  view source on GitHub ↗
(
    builder: IRBuilder, ir: ClassIR, non_ext: NonExtClassInfo, line: int
)

Source from the content-addressed store, hash-verified

903
904
905def load_non_ext_class(
906 builder: IRBuilder, ir: ClassIR, non_ext: NonExtClassInfo, line: int
907) -> Value:
908 cls_name = builder.load_str(ir.name)
909
910 add_dunders_to_non_ext_dict(builder, non_ext, line)
911
912 class_type_obj = builder.py_call(
913 non_ext.metaclass, [cls_name, non_ext.bases, non_ext.dict], line
914 )
915 return class_type_obj
916
917
918def load_decorated_class(builder: IRBuilder, cdef: ClassDef, type_obj: Value) -> Value:

Callers 1

finalizeMethod · 0.85

Calls 3

load_strMethod · 0.45
py_callMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…