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

Method load_final_static

mypyc/irbuild/builder.py:655–667  ·  view source on GitHub ↗
(
        self, fullname: str, typ: RType, line: int, error_name: str | None = None
    )

Source from the content-addressed store, hash-verified

653 self.add(InitStatic(coerced, name, self.module_name))
654
655 def load_final_static(
656 self, fullname: str, typ: RType, line: int, error_name: str | None = None
657 ) -> Value:
658 split_name = split_target(self.graph, fullname)
659 assert split_name is not None
660 module, name = split_name
661 return self.builder.load_static_checked(
662 typ,
663 name,
664 module,
665 line=line,
666 error_msg=f'value for final name "{error_name}" was not set',
667 )
668
669 def init_type_var(self, value: Value, name: str, line: int) -> None:
670 unique_name = name + "___" + str(line)

Callers 1

emit_load_finalMethod · 0.95

Calls 2

split_targetFunction · 0.90
load_static_checkedMethod · 0.80

Tested by

no test coverage detected