Skip to content

Commit 38c275b

Browse files
committed
refactor(api)!: top-level set operation functions are now positional-only
1 parent 6b458b7 commit 38c275b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ibis/expr/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,7 @@ def trailing_range_window(preceding, order_by, group_by=None):
20032003
)
20042004

20052005

2006-
def union(table: ir.Table, *rest: ir.Table, distinct: bool = False) -> ir.Table:
2006+
def union(table: ir.Table, /, *rest: ir.Table, distinct: bool = False) -> ir.Table:
20072007
"""Compute the set union of multiple table expressions.
20082008
20092009
The input tables must have identical schemas.
@@ -2072,7 +2072,7 @@ def union(table: ir.Table, *rest: ir.Table, distinct: bool = False) -> ir.Table:
20722072
return table.union(*rest, distinct=distinct) if rest else table
20732073

20742074

2075-
def intersect(table: ir.Table, *rest: ir.Table, distinct: bool = True) -> ir.Table:
2075+
def intersect(table: ir.Table, /, *rest: ir.Table, distinct: bool = True) -> ir.Table:
20762076
"""Compute the set intersection of multiple table expressions.
20772077
20782078
The input tables must have identical schemas.
@@ -2153,7 +2153,7 @@ def intersect(table: ir.Table, *rest: ir.Table, distinct: bool = True) -> ir.Tab
21532153
return table.intersect(*rest, distinct=distinct) if rest else table
21542154

21552155

2156-
def difference(table: ir.Table, *rest: ir.Table, distinct: bool = True) -> ir.Table:
2156+
def difference(table: ir.Table, /, *rest: ir.Table, distinct: bool = True) -> ir.Table:
21572157
"""Compute the set difference of multiple table expressions.
21582158
21592159
The input tables must have identical schemas.
@@ -2409,7 +2409,7 @@ def _timestamp_range(
24092409

24102410

24112411
@deferrable
2412-
def ifelse(condition: Any, true_expr: Any, false_expr: Any) -> ir.Value:
2412+
def ifelse(condition: Any, true_expr: Any, false_expr: Any, /) -> ir.Value:
24132413
"""Construct a ternary conditional expression.
24142414
24152415
Parameters

0 commit comments

Comments
 (0)