MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / on_unregistered

Method on_unregistered

cmd2/command_set.py:89–94  ·  view source on GitHub ↗

2nd step to unregistering, called by ``cmd2.Cmd`` after a CommandSet is unregistered and all its commands removed. Subclasses can override this to perform remaining cleanup steps.

(self)

Source from the content-addressed store, hash-verified

87 """
88
89 def on_unregistered(self) -> None:
90 """2nd step to unregistering, called by ``cmd2.Cmd`` after a CommandSet is unregistered and all its commands removed.
91
92 Subclasses can override this to perform remaining cleanup steps.
93 """
94 self._cmd_internal = None
95
96 @property
97 def settable_prefix(self) -> str:

Callers 2

register_command_setMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected