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

Method expect_float

mypyc/analysis/ircheck.py:265–267  ·  view source on GitHub ↗
(self, op: Op, v: Value)

Source from the content-addressed store, hash-verified

263 self.fail(source=op, desc=f"{t.name} and {s.name} are not compatible")
264
265 def expect_float(self, op: Op, v: Value) -> None:
266 if not is_float_rprimitive(v.type):
267 self.fail(op, f"Float expected (actual type is {v.type})")
268
269 def expect_non_float(self, op: Op, v: Value) -> None:
270 if is_float_rprimitive(v.type):

Callers 3

visit_float_opMethod · 0.95
visit_float_negMethod · 0.95

Calls 2

failMethod · 0.95
is_float_rprimitiveFunction · 0.90

Tested by

no test coverage detected