File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,10 @@ def __eq__(self, other: Any) -> bool:
483483 return self .term == other .term
484484 return False
485485
486+ def __str__ (self ) -> str :
487+ """Return the string representation of the BoundPredicate class."""
488+ return f"{ self .__class__ .__name__ } (term={ str (self .term )} )"
489+
486490 @property
487491 @abstractmethod
488492 def as_unbound (self ) -> type [UnboundPredicate ]: ...
@@ -911,6 +915,10 @@ def __eq__(self, other: Any) -> bool:
911915 return self .term == other .term and self .literal == other .literal
912916 return False
913917
918+ def __str__ (self ) -> str :
919+ """Return the string representation of the BoundLiteralPredicate class."""
920+ return f"{ self .__class__ .__name__ } (term={ str (self .term )} , literal={ repr (self .literal )} )"
921+
914922 def __repr__ (self ) -> str :
915923 """Return the string representation of the BoundLiteralPredicate class."""
916924 return f"{ str (self .__class__ .__name__ )} (term={ repr (self .term )} , literal={ repr (self .literal )} )"
You can’t perform that action at this time.
0 commit comments