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

Method next_branch

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

Source from the content-addressed store, hash-verified

97 return result
98
99 def next_branch(self) -> None:
100 self.branches.append(
101 BranchState(
102 must_be_defined=self.initial_state.must_be_defined,
103 may_be_defined=self.initial_state.may_be_defined,
104 )
105 )
106
107 def record_definition(self, name: str) -> None:
108 assert len(self.branches) > 0

Callers 6

next_branchMethod · 0.45
visit_if_stmtMethod · 0.45
visit_match_stmtMethod · 0.45
visit_for_stmtMethod · 0.45
process_try_stmtMethod · 0.45
visit_while_stmtMethod · 0.45

Calls 2

BranchStateClass · 0.85
appendMethod · 0.80

Tested by

no test coverage detected