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

Method class_scope

mypy/scope.py:106–109  ·  view source on GitHub ↗
(self, info: TypeInfo)

Source from the content-addressed store, hash-verified

104
105 @contextmanager
106 def class_scope(self, info: TypeInfo) -> Iterator[None]:
107 self.enter_class(info)
108 yield
109 self.leave_class()
110
111 def save(self) -> SavedScope:
112 """Produce a saved scope that can be entered with saved_scope()"""

Callers 9

saved_scopeMethod · 0.95
check_second_passMethod · 0.80
visit_class_defMethod · 0.80
analyze_classMethod · 0.80
visit_class_defMethod · 0.80
visit_class_defMethod · 0.80
visit_newtype_exprMethod · 0.80

Calls 2

enter_classMethod · 0.95
leave_classMethod · 0.95

Tested by

no test coverage detected