(
        self, listener: TransformerListener, component_name: str
    )
return False
Remove a listener for a downstream component. Usually internals.
Remove a listener for a downstream component. Usually internals.
Remove a listener for a downstream component . Usually internals .
def remove_listener(
        self, listener: TransformerListener, component_name: str
    ) -> bool:
        """Remove a listener for a downstream component. Usually internals."""
        if component_name in self.listener_map:
            if listener in self.listener_map[component_name]:
                self.listener_map[component_name].remove(listener)
                # If no listeners are left, remove entry
                if not self.listener_map[component_name]:
                    del self.listener_map[component_name]
                return True
        return False
def remove_listener ( self , listener : TransformerListener , component_name : str ) -> bool : if component_name in self . listener_map : if listener in self . listener_map [ component_name ] : self . listener_map [ component_name ] . remove ( listener ) # If no listeners are left, remove entry if not self . listener_map [ component_name ] : del self . listener_map [ component_name ] return True return False