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

Method skip_branch

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

Source from the content-addressed store, hash-verified

249 self._scope().branch_stmts[-1].record_nested_branch(result)
250
251 def skip_branch(self) -> None:
252 # Only skip branch if we're outside of "root" branch statement.
253 if len(self._scope().branch_stmts) > 1 and not self.disable_branch_skip:
254 self._scope().branch_stmts[-1].skip_branch()
255
256 def record_definition(self, name: str) -> None:
257 assert len(self.scopes) > 0

Callers

nothing calls this directly

Calls 3

_scopeMethod · 0.95
lenFunction · 0.85
skip_branchMethod · 0.45

Tested by

no test coverage detected