MCPcopy Index your code
hub / github.com/python/mypy / visit_assert_stmt

Method visit_assert_stmt

mypy/partially_defined.py:499–502  ·  view source on GitHub ↗
(self, o: AssertStmt)

Source from the content-addressed store, hash-verified

497 self.tracker.exit_scope()
498
499 def visit_assert_stmt(self, o: AssertStmt) -> None:
500 super().visit_assert_stmt(o)
501 if checker.is_false_literal(o.expr):
502 self.tracker.skip_branch()
503
504 def visit_raise_stmt(self, o: RaiseStmt) -> None:
505 super().visit_raise_stmt(o)

Callers

nothing calls this directly

Calls 1

skip_branchMethod · 0.45

Tested by

no test coverage detected