docs: def deregister_all(self, *events):
          """
          Deregisters all handler functions, or those registered against the given event(s).
          """
          if events:
              for event in events:
                  self._handler_dict[event] = []
          else:
              self._handler_dict = {}