fix(checker): produce judgement for expression in cast
This commit is contained in:
@@ -538,6 +538,7 @@ class PythonTyper(
|
|||||||
return UnknownType()
|
return UnknownType()
|
||||||
|
|
||||||
def visit_cast_expr(self, expr: p.CastExpr) -> Type:
|
def visit_cast_expr(self, expr: p.CastExpr) -> Type:
|
||||||
|
_ = self.type_of(expr.expr)
|
||||||
return self.resolve_type_expr(expr.type)
|
return self.resolve_type_expr(expr.type)
|
||||||
|
|
||||||
def visit_ternary_expr(self, expr: p.TernaryExpr) -> Type:
|
def visit_ternary_expr(self, expr: p.TernaryExpr) -> Type:
|
||||||
|
|||||||
Reference in New Issue
Block a user