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

Method visit_while_stmt

mypy/semanal.py:5485–5492  ·  view source on GitHub ↗
(self, s: WhileStmt)

Source from the content-addressed store, hash-verified

5483 self.add_exports(s.rvalue.items)
5484
5485 def visit_while_stmt(self, s: WhileStmt) -> None:
5486 self.statement = s
5487 s.expr.accept(self)
5488 self.loop_depth[-1] += 1
5489 with self.inside_except_star_block_set(value=False, entering_loop=True):
5490 s.body.accept(self)
5491 self.loop_depth[-1] -= 1
5492 self.visit_block_maybe(s.else_body)
5493
5494 def visit_for_stmt(self, s: ForStmt) -> None:
5495 if s.is_async:

Callers

nothing calls this directly

Calls 3

visit_block_maybeMethod · 0.95
acceptMethod · 0.45

Tested by

no test coverage detected