def register_cmdfinalization_hook(self, func: Callable[[plugin.CommandFinalizationData],
                                                           plugin.CommandFinalizationData]) -> None:
        """Register a hook to be called after a command is completed, whether it completes successfully or not."""
        self._validate_cmdfinalization_callable(func)
        self._cmdfinalization_hooks.append(func)
def register_cmdfinalization_hook ( self , func : Callable [ [ plugin . CommandFinalizationData ] , plugin . CommandFinalizationData ] ) -> None : self . _validate_cmdfinalization_callable ( func ) self . _cmdfinalization_hooks . append ( func )
Register a hook to be called after a command is completed, whether it completes successfully or not.