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

Method load_str

mypyc/irbuild/ll_builder.py:1516–1522  ·  view source on GitHub ↗

Load a str literal value. This is useful for more than just str literals; for example, method calls also require a PyObject * form for the name of the method.

(self, value: str, line: int = -1)

Source from the content-addressed store, hash-verified

1514 return Float(value, line)
1515
1516 def load_str(self, value: str, line: int = -1) -> Value:
1517 """Load a str literal value.
1518
1519 This is useful for more than just str literals; for example, method calls
1520 also require a PyObject * form for the name of the method.
1521 """
1522 return self.add(LoadLiteral(value, str_rprimitive, line))
1523
1524 def load_bytes(self, value: bytes, line: int = -1) -> Value:
1525 """Load a bytes literal value."""

Callers 5

debug_printMethod · 0.95
py_get_attrMethod · 0.95
_construct_varargsMethod · 0.95
py_method_callMethod · 0.95

Calls 2

addMethod · 0.95
LoadLiteralClass · 0.90

Tested by

no test coverage detected