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

Method __exit__

mypy/gclogger.py:35–37  ·  view source on GitHub ↗
(self, *args: object)

Source from the content-addressed store, hash-verified

33 assert False, f"Unrecognized gc phase ({phase!r})"
34
35 def __exit__(self, *args: object) -> None:
36 while self.gc_callback in gc.callbacks:
37 gc.callbacks.remove(self.gc_callback)
38
39 def get_stats(self) -> Mapping[str, float]:
40 end_time = time.time()

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected