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

Method start_branch_statement

mypy/partially_defined.py:236–240  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

234 return self._scope().scope_type == scope_type
235
236 def start_branch_statement(self) -> None:
237 assert len(self._scope().branch_stmts) > 0
238 self._scope().branch_stmts.append(
239 BranchStatement(self._scope().branch_stmts[-1].branches[-1])
240 )
241
242 def next_branch(self) -> None:
243 assert len(self._scope().branch_stmts) > 1

Callers 5

visit_if_stmtMethod · 0.80
visit_match_stmtMethod · 0.80
visit_for_stmtMethod · 0.80
process_try_stmtMethod · 0.80
visit_while_stmtMethod · 0.80

Calls 4

_scopeMethod · 0.95
lenFunction · 0.85
BranchStatementClass · 0.85
appendMethod · 0.80

Tested by

no test coverage detected