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

Method saved_scope

mypy/scope.py:120–125  ·  view source on GitHub ↗
(self, saved: SavedScope)

Source from the content-addressed store, hash-verified

118
119 @contextmanager
120 def saved_scope(self, saved: SavedScope) -> Iterator[None]:
121 module, info, function = saved
122 with self.module_scope(module):
123 with self.class_scope(info) if info else nullcontext():
124 with self.function_scope(function) if function else nullcontext():
125 yield

Callers 1

Calls 3

module_scopeMethod · 0.95
class_scopeMethod · 0.95
function_scopeMethod · 0.95

Tested by

no test coverage detected