MCPcopy
hub / github.com/python/mypy / skip_branch

Method skip_branch

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

Source from the content-addressed store, hash-verified

125 current_branch.may_be_defined.difference_update(current_branch.must_be_defined)
126
127 def skip_branch(self) -> None:
128 assert len(self.branches) > 0
129 self.branches[-1].skipped = True
130
131 def is_possibly_undefined(self, name: str) -> bool:
132 assert len(self.branches) > 0

Callers 9

skip_branchMethod · 0.45
visit_if_stmtMethod · 0.45
visit_match_stmtMethod · 0.45
visit_return_stmtMethod · 0.45
visit_assert_stmtMethod · 0.45
visit_raise_stmtMethod · 0.45
visit_continue_stmtMethod · 0.45
visit_break_stmtMethod · 0.45
visit_expression_stmtMethod · 0.45

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected