Skip to content

Commit dba3f8c

Browse files
committed
Fix Or as well
1 parent 81082c6 commit dba3f8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyiceberg/expressions/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,11 @@ class Or(BooleanExpression):
353353
left: SerializableBooleanExpression = Field()
354354
right: SerializableBooleanExpression = Field()
355355

356-
def __init__(self, left: BooleanExpression, right: BooleanExpression, *rest: BooleanExpression) -> None:
356+
def __init__(self, left: BooleanExpression, right: BooleanExpression, *rest: BooleanExpression, **_: Any) -> None:
357357
if isinstance(self, Or) and not hasattr(self, "left") and not hasattr(self, "right"):
358358
super().__init__(left=left, right=right)
359359

360-
def __new__(cls, left: BooleanExpression, right: BooleanExpression, *rest: BooleanExpression) -> BooleanExpression:
360+
def __new__(cls, left: BooleanExpression, right: BooleanExpression, *rest: BooleanExpression, **_: Any) -> BooleanExpression:
361361
if rest:
362362
return _build_balanced_tree(Or, (left, right, *rest))
363363
if left is AlwaysTrue() or right is AlwaysTrue():

0 commit comments

Comments
 (0)