@@ -149,7 +149,7 @@ def __getitem__(self, index: int | ir.IntegerValue | slice) -> ir.Value:
149
149
op = ops .ArrayIndex (self , index )
150
150
return op .to_expr ()
151
151
152
- def concat (self , other : ArrayValue , * args : ArrayValue ) -> ArrayValue :
152
+ def concat (self , other : ArrayValue , / , * args : ArrayValue ) -> ArrayValue :
153
153
"""Concatenate this array with one or more arrays.
154
154
155
155
Parameters
@@ -231,7 +231,7 @@ def __add__(self, other: ArrayValue) -> ArrayValue:
231
231
def __radd__ (self , other : ArrayValue ) -> ArrayValue :
232
232
return ops .ArrayConcat ((other , self )).to_expr ()
233
233
234
- def repeat (self , n : int | ir .IntegerValue ) -> ArrayValue :
234
+ def repeat (self , n : int | ir .IntegerValue , / ) -> ArrayValue :
235
235
"""Repeat this array `n` times.
236
236
237
237
Parameters
@@ -338,7 +338,7 @@ def unnest(self) -> ir.Value:
338
338
except com .ExpressionError :
339
339
return expr
340
340
341
- def join (self , sep : str | ir .StringValue ) -> ir .StringValue :
341
+ def join (self , sep : str | ir .StringValue , / ) -> ir .StringValue :
342
342
"""Join the elements of this array expression with `sep`.
343
343
344
344
Parameters
@@ -423,6 +423,7 @@ def map(
423
423
func : Deferred
424
424
| Callable [[ir .Value ], ir .Value ]
425
425
| Callable [[ir .Value , ir .Value ], ir .Value ],
426
+ / ,
426
427
) -> ir .ArrayValue :
427
428
"""Apply a `func` or `Deferred` to each element of this array expression.
428
429
@@ -533,6 +534,7 @@ def filter(
533
534
predicate : Deferred
534
535
| Callable [[ir .Value ], bool | ir .BooleanValue ]
535
536
| Callable [[ir .Value , ir .IntegerValue ], bool | ir .BooleanValue ],
537
+ / ,
536
538
) -> ir .ArrayValue :
537
539
"""Filter array elements using `predicate` function or `Deferred`.
538
540
@@ -638,7 +640,7 @@ def filter(
638
640
param , index , body = self ._construct_array_func_inputs (predicate )
639
641
return ops .ArrayFilter (self , param = param , index = index , body = body ).to_expr ()
640
642
641
- def contains (self , other : ir .Value ) -> ir .BooleanValue :
643
+ def contains (self , other : ir .Value , / ) -> ir .BooleanValue :
642
644
"""Return whether the array contains `other`.
643
645
644
646
Parameters
@@ -692,7 +694,7 @@ def contains(self, other: ir.Value) -> ir.BooleanValue:
692
694
"""
693
695
return ops .ArrayContains (self , other ).to_expr ()
694
696
695
- def index (self , other : ir .Value ) -> ir .IntegerValue :
697
+ def index (self , other : ir .Value , / ) -> ir .IntegerValue :
696
698
"""Return the position of `other` in an array.
697
699
698
700
Parameters
@@ -757,7 +759,7 @@ def index(self, other: ir.Value) -> ir.IntegerValue:
757
759
"""
758
760
return ops .ArrayPosition (self , other ).to_expr ()
759
761
760
- def remove (self , other : ir .Value ) -> ir .ArrayValue :
762
+ def remove (self , other : ir .Value , / ) -> ir .ArrayValue :
761
763
"""Remove `other` from `self`.
762
764
763
765
Parameters
@@ -866,7 +868,7 @@ def sort(self) -> ir.ArrayValue:
866
868
"""
867
869
return ops .ArraySort (self ).to_expr ()
868
870
869
- def union (self , other : ir .ArrayValue ) -> ir .ArrayValue :
871
+ def union (self , other : ir .ArrayValue , / ) -> ir .ArrayValue :
870
872
"""Union two arrays.
871
873
872
874
Parameters
@@ -917,7 +919,7 @@ def union(self, other: ir.ArrayValue) -> ir.ArrayValue:
917
919
"""
918
920
return ops .ArrayUnion (self , other ).to_expr ()
919
921
920
- def intersect (self , other : ArrayValue ) -> ArrayValue :
922
+ def intersect (self , other : ArrayValue , / ) -> ArrayValue :
921
923
"""Intersect two arrays.
922
924
923
925
Parameters
@@ -958,7 +960,7 @@ def intersect(self, other: ArrayValue) -> ArrayValue:
958
960
"""
959
961
return ops .ArrayIntersect (self , other ).to_expr ()
960
962
961
- def zip (self , other : ArrayValue , * others : ArrayValue ) -> ArrayValue :
963
+ def zip (self , other : ArrayValue , / , * others : ArrayValue ) -> ArrayValue :
962
964
"""Zip two or more arrays together.
963
965
964
966
Parameters
@@ -1385,7 +1387,7 @@ def __getitem__(self, index: int | ir.IntegerValue | slice) -> ir.Column:
1385
1387
1386
1388
@public
1387
1389
@deferrable
1388
- def array (values : Iterable [V ]) -> ArrayValue :
1390
+ def array (values : Iterable [V ], / ) -> ArrayValue :
1389
1391
"""Create an array expression.
1390
1392
1391
1393
If any values are [column expressions](../concepts/datatypes.qmd) the
0 commit comments