def visit_cast_expr(self, node: CastExpr) -> CastExpr: return CastExpr(self.expr(node.expr), self.type(node.type))
def visit_cast_expr(self, e: CastExpr) -> None: super().visit_cast_expr(e) if isinstance(self.get_type(e), AnyType): e.expr = self.coerce(e.expr, AnyType(), self.get_type(e.expr), self.type_context())
def visit_cast_expr(self, e: CastExpr) -> None: super().visit_cast_expr(e) if isinstance(self.get_type(e), AnyType): e.expr = self.coerce(e.expr, AnyType(), self.get_type(e.expr), self.type_context())