Skip to content

Commit 6b81682

Browse files
committed
Fix __getnewargs__ return type to match widened term field
SetPredicate.__getnewargs__ return annotation used UnboundTerm, but the field is now str | UnboundTerm. Widen the tuple type to match.
1 parent a8726b6 commit 6b81682

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyiceberg/expressions/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ def __eq__(self, other: Any) -> bool:
716716
"""Return the equality of two instances of the SetPredicate class."""
717717
return self.term == other.term and self.literals == other.literals if isinstance(other, self.__class__) else False
718718

719-
def __getnewargs__(self) -> tuple[UnboundTerm, set[Any]]:
719+
def __getnewargs__(self) -> tuple[str | UnboundTerm, set[Any]]:
720720
"""Pickle the SetPredicate class."""
721721
return (self.term, self.literals)
722722

0 commit comments

Comments
 (0)