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 Oct 21, 2023
1 parent 877a574 commit b93bd22
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 b93bd22

Please sign in to comment.