Skip to content

Commit

Permalink
Fix NotStartsWith negation (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweeks authored and Fokko committed Oct 24, 2023
1 parent 2a3c1bd commit 7e263ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiceberg/expressions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,9 +890,9 @@ def as_bound(self) -> Type[BoundStartsWith[L]]:


class NotStartsWith(LiteralPredicate[L]):
def __invert__(self) -> NotStartsWith[L]:
def __invert__(self) -> StartsWith[L]:
"""Transform the Expression into its negated version."""
return NotStartsWith[L](self.term, self.literal)
return StartsWith[L](self.term, self.literal)

@property
def as_bound(self) -> Type[BoundNotStartsWith[L]]:
Expand Down

0 comments on commit 7e263ae

Please sign in to comment.