(self, component)
Walk over a model of a processing component, looking for layers that
        are TransformerListener subclasses that have an upstream_name that
        matches this component.
        Listeners can also set their upstream_name attribute to the wildcard
        string '*' to match any `Transformer`.

        You're unlikely to ever need multiple `Transformer` components, so it's
        fine to leave your listeners upstream_name on '*'.
Walk over a model of a processing component, looking for layers that
        are TransformerListener subclasses that have an upstream_name that
        matches this component.
        Listeners can also set their upstream_name attribute to the wildcard
        string '*' to match any `Transformer`.
Walk over a model of a processing component looking for layers that are TransformerListener subclasses that have an upstream_name that matches this component . Listeners can also set their upstream_name attribute to the wildcard string * to match any Transformer .
def find_listeners(self, component) -> None:
        """Walk over a model of a processing component, looking for layers that
        are TransformerListener subclasses that have an upstream_name that
        matches this component.
        Listeners can also set their upstream_name attribute to the wildcard
        string '*' to match any `Transformer`.

        You're unlikely to ever need multiple `Transformer` components, so it's
        fine to leave your listeners upstream_name on '*'.
        """
        names = ("*", self.name)
        if isinstance(getattr(component, "model", None), Model):
            for node in component.model.walk():
                if (
                    isinstance(node, TransformerListener)
                    and node.upstream_name in names
                ):
                    self.add_listener(node, component.name)
def find_listeners ( self , component ) -> None : names = ( "*" , self . name ) if isinstance ( getattr ( component , "model" , None ) , Model ) : for node in component . model . walk ( ) : if ( isinstance ( node , TransformerListener ) and node . upstream_name in names ) : self . add_listener ( node , component . name )