MCPcopy Index your code
hub / github.com/ipython/ipython / __exit__

Method __exit__

IPython/utils/contexts.py:59–69  ·  view source on GitHub ↗
(
        self,
        exc_type: type[BaseException] | None,
        exc_val: BaseException | None,
        exc_tb: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

57 self.to_update = to_update
58
59 def __exit__(
60 self,
61 exc_type: type[BaseException] | None,
62 exc_val: BaseException | None,
63 exc_tb: TracebackType | None,
64 ) -> None:
65 d = self.dictionary
66
67 for k in self.to_delete:
68 d.pop(k, None)
69 d.update(self.to_update)

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected