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

Method module_scope

mypy/scope.py:58–65  ·  view source on GitHub ↗
(self, prefix: str)

Source from the content-addressed store, hash-verified

56
57 @contextmanager
58 def module_scope(self, prefix: str) -> Iterator[None]:
59 self.module = prefix
60 self.classes = []
61 self.function = None
62 self.ignored = 0
63 yield
64 assert self.module
65 self.module = None
66
67 @contextmanager
68 def function_scope(self, fdef: FuncBase) -> Iterator[None]:

Callers 7

saved_scopeMethod · 0.95
check_first_passMethod · 0.80
check_second_passMethod · 0.80
file_contextMethod · 0.80
visit_mypy_fileMethod · 0.80
visit_mypy_fileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected