code: def add_receiver(self, receiver):
          
          if not callable(receiver):
              raise TypeError("receiver must be callable")
          self.event_receivers.append(receiver)
docs: Add a receiver to the list of receivers.
  
          :param receiver: a callable variable