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

Method in_scope

mypy/partially_defined.py:233–234  ·  view source on GitHub ↗
(self, scope_type: ScopeType)

Source from the content-addressed store, hash-verified

231 self.scopes.pop()
232
233 def in_scope(self, scope_type: ScopeType) -> bool:
234 return self._scope().scope_type == scope_type
235
236 def start_branch_statement(self) -> None:
237 assert len(self._scope().branch_stmts) > 0

Callers 2

process_definitionMethod · 0.80
visit_name_exprMethod · 0.80

Calls 1

_scopeMethod · 0.95

Tested by

no test coverage detected