docs: def remove_hook(self, name, func):
          ''' Remove a callback from a hook. '''
          if name in self._hooks and func in self._hooks[name]:
              self._hooks[name].remove(func)
              return True