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

Method visit_cast_expr

mypy/semanal.py:6314–6318  ·  view source on GitHub ↗
(self, expr: CastExpr)

Source from the content-addressed store, hash-verified

6312 expr.stride.accept(self)
6313
6314 def visit_cast_expr(self, expr: CastExpr) -> None:
6315 expr.expr.accept(self)
6316 analyzed = self.anal_type(expr.type)
6317 if analyzed is not None:
6318 expr.type = analyzed
6319
6320 def visit_type_form_expr(self, expr: TypeFormExpr) -> None:
6321 analyzed = self.anal_type(expr.type)

Callers

nothing calls this directly

Calls 2

anal_typeMethod · 0.95
acceptMethod · 0.45

Tested by

no test coverage detected