MCPcopy Create free account
hub / github.com/python/mypy / coerce

Method coerce

mypyc/irbuild/builder.py:381–382  ·  view source on GitHub ↗
(self, src: Value, target_type: RType, line: int, force: bool = False)

Source from the content-addressed store, hash-verified

379 return self.builder.binary_op(lreg, rreg, expr_op, line)
380
381 def coerce(self, src: Value, target_type: RType, line: int, force: bool = False) -> Value:
382 return self.builder.coerce(src, target_type, line, force, can_borrow=self.can_borrow)
383
384 def none_object(self, line: int = -1) -> Value:
385 return self.builder.none_object(line)

Callers 15

acceptMethod · 0.95
assign_if_nullMethod · 0.95
add_implicit_returnMethod · 0.95
init_final_staticMethod · 0.95
coerce_rvalueMethod · 0.95
begin_bodyMethod · 0.45
begin_bodyMethod · 0.45
begin_bodyMethod · 0.45
begin_bodyMethod · 0.45
begin_bodyMethod · 0.45
begin_bodyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected