fix(checker): produce judgement for expression in cast

This commit is contained in:
2026-06-22 15:24:51 +02:00
parent f75d7722a1
commit 216c80f08c

View File

@@ -538,6 +538,7 @@ class PythonTyper(
return UnknownType()
def visit_cast_expr(self, expr: p.CastExpr) -> Type:
_ = self.type_of(expr.expr)
return self.resolve_type_expr(expr.type)
def visit_ternary_expr(self, expr: p.TernaryExpr) -> Type: