(self, other: Operator)
return True
Checks if the type of the operator imnplementations are compatible
Checks if the type of the operator imnplementations are compatible
Checks if the type of the operator imnplementations are compatible
def _has_same_impl(self, other: Operator) -> bool:
        """Checks if the type of the operator imnplementations are compatible"""
        if not isinstance(other, BasePipeline):
            return False
        my_steps = self.steps()
        other_steps = other.steps()
        if len(my_steps) != len(other_steps):
            return False

        for (m, o) in zip(my_steps, other_steps):
            if not m._has_same_impl(o):
                return False
        return True
def _has_same_impl ( self , other : Operator ) -> bool : if not isinstance ( other , BasePipeline ) : return False my_steps = self . steps ( ) other_steps = other . steps ( ) if len ( my_steps ) != len ( other_steps ) : return False for ( m , o ) in zip ( my_steps , other_steps ) : if not m . _has_same_impl ( o ) : return False return True