MCPcopy Create free account
hub / github.com/ipython/traitlets / __del__

Method __del__

traitlets/config/application.py:1067–1072  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1065 sys.exit(exit_status)
1066
1067 def __del__(self) -> None:
1068 # __del__ may be called during process teardown,
1069 # at which point any fraction of attributes and modules may have been cleared,
1070 # e.g. even _accessing_ self.log may fail.
1071 with suppress(Exception):
1072 self.close_handlers()
1073
1074 @classmethod
1075 def launch_instance(cls, argv: ArgvType = None, **kwargs: t.Any) -> None:

Callers

nothing calls this directly

Calls 1

close_handlersMethod · 0.95

Tested by

no test coverage detected