MCPcopy
hub / github.com/python/mypy / AssertStmt

Class AssertStmt

mypy/nodes.py:2019–2033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2017
2018
2019class AssertStmt(Statement):
2020 __slots__ = ("expr", "msg")
2021
2022 __match_args__ = ("expr", "msg")
2023
2024 expr: Expression
2025 msg: Expression | None
2026
2027 def __init__(self, expr: Expression, msg: Expression | None = None) -> None:
2028 super().__init__()
2029 self.expr = expr
2030 self.msg = msg
2031
2032 def accept(self, visitor: StatementVisitor[T]) -> T:
2033 return visitor.visit_assert_stmt(self)
2034
2035
2036class DelStmt(Statement):

Callers 3

visit_AssertMethod · 0.90
visit_assert_stmtMethod · 0.90
read_statementFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…