MCPcopy Create free account
hub / github.com/python/mypy / visit_cast_expr

Method visit_cast_expr

mypy/treetransform.py:544–545  ·  view source on GitHub ↗
(self, node: CastExpr)

Source from the content-addressed store, hash-verified

542 return new
543
544 def visit_cast_expr(self, node: CastExpr) -> CastExpr:
545 return CastExpr(self.expr(node.expr), self.type(node.type))
546
547 def visit_type_form_expr(self, node: TypeFormExpr) -> TypeFormExpr:
548 return TypeFormExpr(self.type(node.type))

Callers

nothing calls this directly

Calls 3

exprMethod · 0.95
typeMethod · 0.95
CastExprClass · 0.90

Tested by

no test coverage detected