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

Method leave_class

mypy/semanal.py:2227–2234  ·  view source on GitHub ↗

Restore analyzer state.

(self)

Source from the content-addressed store, hash-verified

2225 self.missing_names.append(set())
2226
2227 def leave_class(self) -> None:
2228 """Restore analyzer state."""
2229 self.block_depth.pop()
2230 self.loop_depth.pop()
2231 self.locals.pop()
2232 self.scope_stack.pop()
2233 self._type = self.type_stack.pop()
2234 self.missing_names.pop()
2235
2236 def analyze_class_decorator(self, defn: ClassDef, decorator: Expression) -> None:
2237 decorator.accept(self)

Callers 2

file_contextMethod · 0.95

Calls 1

popMethod · 0.45

Tested by

no test coverage detected