[docs]def__eq__(self,other:Any)->bool:"""Overrides the default implementation"""ifisinstance(other,self.__class__):returnbool(DeepDiff(self.to_dict(),other.to_dict(),ignore_order=True,max_passes=1,cache_size=100,exclude_paths=["root['name']"],))returnNotImplemented
[docs]@abstractmethoddefto_dict(self)->dict[str,Any]:"""Returns a dictionary representation of the Filter"""raiseNotImplementedError
[docs]def__hash__(self)->int:"""Overrides the default implementation"""returnhash(tuple(sorted(self.to_dict().items())))