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

Method visit_complex_expr

mypy/checkexpr.py:3547–3549  ·  view source on GitHub ↗

Type check a complex literal.

(self, e: ComplexExpr)

Source from the content-addressed store, hash-verified

3545 return self.named_type("builtins.float")
3546
3547 def visit_complex_expr(self, e: ComplexExpr) -> Type:
3548 """Type check a complex literal."""
3549 return self.named_type("builtins.complex")
3550
3551 def visit_ellipsis(self, e: EllipsisExpr) -> Type:
3552 """Type check '...'."""

Callers

nothing calls this directly

Calls 1

named_typeMethod · 0.95

Tested by

no test coverage detected