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

Function translate_cast_expr

mypyc/irbuild/expression.py:694–697  ·  view source on GitHub ↗
(builder: IRBuilder, expr: CastExpr)

Source from the content-addressed store, hash-verified

692
693
694def translate_cast_expr(builder: IRBuilder, expr: CastExpr) -> Value:
695 src = builder.accept(expr.expr)
696 target_type = builder.type_to_rtype(expr.type)
697 return builder.coerce(src, target_type, expr.line)
698
699
700# Operators

Callers 1

transform_call_exprFunction · 0.85

Calls 3

acceptMethod · 0.45
type_to_rtypeMethod · 0.45
coerceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…