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

Method visit_float_expr

mypy/checkexpr.py:3543–3545  ·  view source on GitHub ↗

Type check a float literal (trivial).

(self, e: FloatExpr)

Source from the content-addressed store, hash-verified

3541 return self.infer_literal_expr_type(e.value, "builtins.bytes")
3542
3543 def visit_float_expr(self, e: FloatExpr) -> Type:
3544 """Type check a float literal (trivial)."""
3545 return self.named_type("builtins.float")
3546
3547 def visit_complex_expr(self, e: ComplexExpr) -> Type:
3548 """Type check a complex literal."""

Callers

nothing calls this directly

Calls 1

named_typeMethod · 0.95

Tested by

no test coverage detected