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

Method visit_block_maybe

mypy/semanal.py:5438–5440  ·  view source on GitHub ↗
(self, b: Block | None)

Source from the content-addressed store, hash-verified

5436 self.block_depth[-1] -= 1
5437
5438 def visit_block_maybe(self, b: Block | None) -> None:
5439 if b:
5440 self.visit_block(b)
5441
5442 def visit_expression_stmt(self, s: ExpressionStmt) -> None:
5443 self.statement = s

Callers 3

visit_while_stmtMethod · 0.95
visit_for_stmtMethod · 0.95
visit_if_stmtMethod · 0.95

Calls 1

visit_blockMethod · 0.95

Tested by

no test coverage detected