code: def register_postcmd_hook(self, func: Callable[[plugin.PostcommandData], plugin.PostcommandData]) -> None:
          
          self._validate_prepostcmd_hook(func, plugin.PostcommandData)
          self._postcmd_hooks.append(func)
docs: Register a hook to be called after the command function.