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

Method begin_body

mypyc/irbuild/for_helpers.py:1073–1083  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1071 dict_iter_op = dict_value_iter_op
1072
1073 def begin_body(self) -> None:
1074 builder = self.builder
1075 line = self.line
1076
1077 # Value is stored at the third place in the tuple.
1078 value = builder.add(TupleGet(self.next_tuple, 2, line))
1079 builder.assign(
1080 builder.get_assignment_target(self.index),
1081 builder.coerce(value, self.target_type, line),
1082 line,
1083 )
1084
1085
1086class ForDictionaryItems(ForDictionaryCommon):

Callers

nothing calls this directly

Calls 5

TupleGetClass · 0.90
get_assignment_targetMethod · 0.80
addMethod · 0.45
assignMethod · 0.45
coerceMethod · 0.45

Tested by

no test coverage detected