Cast expression cast(type, expr).
| 2763 | |
| 2764 | |
| 2765 | class CastExpr(Expression): |
| 2766 | """Cast expression cast(type, expr).""" |
| 2767 | |
| 2768 | __slots__ = ("expr", "type") |
| 2769 | |
| 2770 | __match_args__ = ("expr", "type") |
| 2771 | |
| 2772 | expr: Expression |
| 2773 | type: mypy.types.Type |
| 2774 | |
| 2775 | def __init__(self, expr: Expression, typ: mypy.types.Type) -> None: |
| 2776 | super().__init__() |
| 2777 | self.expr = expr |
| 2778 | self.type = typ |
| 2779 | |
| 2780 | def accept(self, visitor: ExpressionVisitor[T]) -> T: |
| 2781 | return visitor.visit_cast_expr(self) |
| 2782 | |
| 2783 | |
| 2784 | class TypeFormExpr(Expression): |
no outgoing calls
no test coverage detected
searching dependent graphs…