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

Method tvar_scope_frame

mypy/semanal.py:7287–7291  ·  view source on GitHub ↗
(self, frame: TypeVarLikeScope)

Source from the content-addressed store, hash-verified

7285
7286 @contextmanager
7287 def tvar_scope_frame(self, frame: TypeVarLikeScope) -> Iterator[None]:
7288 old_scope = self.tvar_scope
7289 self.tvar_scope = frame
7290 yield
7291 self.tvar_scope = old_scope
7292
7293 def defer(self, debug_context: Context | None = None, force_progress: bool = False) -> None:
7294 """Defer current analysis target to be analyzed again.

Callers 9

analyze_func_defMethod · 0.95
analyze_function_bodyMethod · 0.95
visit_class_defMethod · 0.95
analyze_aliasMethod · 0.95
analyze_type_exprMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected