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

Method field_type

mypyc/ir/rtypes.py:1081–1086  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

1079 return 0
1080
1081 def field_type(self, name: str) -> RType:
1082 if name == "len":
1083 return c_pyssize_t_rprimitive
1084 elif name == "items":
1085 return pointer_rprimitive
1086 assert False, f"RVec has no field '{name}'"
1087
1088 def accept(self, visitor: RTypeVisitor[T]) -> T:
1089 return visitor.visit_rvec(self)

Callers 3

load_struct_fieldMethod · 0.45
set_struct_fieldMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected