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

Method exit_scope

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

Source from the content-addressed store, hash-verified

228 self.scopes.append(Scope([BranchStatement(initial_state)], scope_type))
229
230 def exit_scope(self) -> None:
231 self.scopes.pop()
232
233 def in_scope(self, scope_type: ScopeType) -> bool:
234 return self._scope().scope_type == scope_type

Callers 5

visit_funcMethod · 0.80
visit_generator_exprMethod · 0.80
visit_lambda_exprMethod · 0.80
visit_class_defMethod · 0.80

Calls 1

popMethod · 0.45

Tested by

no test coverage detected