@@ -577,15 +577,14 @@ def as_bound(self) -> Type[BoundNotNaN[L]]:
577577 return BoundNotNaN [L ]
578578
579579
580- class SetPredicate (UnboundPredicate [L ], IcebergBaseModel , ABC ):
580+ class SetPredicate (IcebergBaseModel , UnboundPredicate [L ], ABC ):
581581 model_config = ConfigDict (arbitrary_types_allowed = True )
582582
583- type : TypingLiteral ["in" , "not-in" ] = Field (default = "in" , alias = "type" )
583+ type : TypingLiteral ["in" , "not-in" ] = Field (default = "in" )
584584 literals : Set [Literal [L ]] = Field (alias = "items" )
585585
586586 def __init__ (self , term : Union [str , UnboundTerm [Any ]], literals : Union [Iterable [L ], Iterable [Literal [L ]]]):
587- super ().__init__ (term )
588- self .literals = _to_literal_set (literals )
587+ super ().__init__ (term = _to_unbound_term (term ), items = _to_literal_set (literals )) # type: ignore
589588
590589 def bind (self , schema : Schema , case_sensitive : bool = True ) -> BoundSetPredicate [L ]:
591590 bound_term = self .term .bind (schema , case_sensitive )
@@ -737,7 +736,7 @@ def __new__( # type: ignore # pylint: disable=W0221
737736
738737 def __invert__ (self ) -> In [L ]:
739738 """Transform the Expression into its negated version."""
740- return NotIn [L ](self .term , self .literals )
739+ return In [L ](self .term , self .literals )
741740
742741 @property
743742 def as_bound (self ) -> Type [BoundNotIn [L ]]:
0 commit comments