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

Class Float

mypyc/ir/ops.py:225–236  ·  view source on GitHub ↗

Float literal. Floating point literals are treated as constant values and are generally not included in data flow analyses and such, unlike Register and Op subclasses.

Source from the content-addressed store, hash-verified

223
224@final
225class Float(Value):
226 """Float literal.
227
228 Floating point literals are treated as constant values and are generally
229 not included in data flow analyses and such, unlike Register and
230 Op subclasses.
231 """
232
233 def __init__(self, value: float, line: int = -1) -> None:
234 self.value = value
235 self.type = float_rprimitive
236 self.line = line
237
238
239@final

Callers 10

coerceMethod · 0.90
load_floatMethod · 0.90
binary_opMethod · 0.90
unary_minusMethod · 0.90
bool_valueMethod · 0.90
float_opMethod · 0.90
float_modMethod · 0.90
is_same_float_signsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…