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

Class Loop

mypy/partially_defined.py:297–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295
296
297class Loop:
298 def __init__(self) -> None:
299 self.has_break = False
300 # variables defined in every loop branch with `break`
301 self.break_vars: set[str] | None = None
302
303
304class PossiblyUndefinedVariableVisitor(ExtendedTraverserVisitor):

Callers 2

visit_for_stmtMethod · 0.85
visit_while_stmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…