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

Method __init__

mypyc/ir/ops.py:1704–1710  ·  view source on GitHub ↗
(self, src: Value, field: str, line: int = -1)

Source from the content-addressed store, hash-verified

1702 is_borrowed = True
1703
1704 def __init__(self, src: Value, field: str, line: int = -1) -> None:
1705 super().__init__(line)
1706 assert isinstance(src.type, (RStruct, RVec))
1707 self.type = src.type.field_type(field)
1708 self.src = src
1709 self.src_type = src.type
1710 self.field = field
1711
1712 def sources(self) -> list[Value]:
1713 return [self.src]

Callers

nothing calls this directly

Calls 3

isinstanceFunction · 0.85
__init__Method · 0.45
field_typeMethod · 0.45

Tested by

no test coverage detected