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

Class FloatExpr

mypy/nodes.py:2317–2331  ·  view source on GitHub ↗

Float literal

Source from the content-addressed store, hash-verified

2315
2316
2317class FloatExpr(Expression):
2318 """Float literal"""
2319
2320 __slots__ = ("value",)
2321
2322 __match_args__ = ("value",)
2323
2324 value: float # 0.0 by default
2325
2326 def __init__(self, value: float) -> None:
2327 super().__init__()
2328 self.value = value
2329
2330 def accept(self, visitor: ExpressionVisitor[T]) -> T:
2331 return visitor.visit_float_expr(self)
2332
2333
2334class ComplexExpr(Expression):

Callers 3

visit_ConstantMethod · 0.90
visit_float_exprMethod · 0.90
read_expressionFunction · 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…