Skip to content

Commit f363a07

Browse files
committed
refactor(api)!: make Table set operation methods positional-only
1 parent 3bfcc0c commit f363a07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ibis/expr/types/relations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ def _assemble_set_op(
16211621
assert not queue, "items left in queue"
16221622
return result.to_expr()
16231623

1624-
def union(self, table: Table, *rest: Table, distinct: bool = False) -> Table:
1624+
def union(self, table: Table, /, *rest: Table, distinct: bool = False) -> Table:
16251625
"""Compute the set union of multiple table expressions.
16261626
16271627
The input tables must have identical schemas.
@@ -1692,7 +1692,7 @@ def union(self, table: Table, *rest: Table, distinct: bool = False) -> Table:
16921692
"""
16931693
return self._assemble_set_op(ops.Union, table, *rest, distinct=distinct)
16941694

1695-
def intersect(self, table: Table, *rest: Table, distinct: bool = True) -> Table:
1695+
def intersect(self, table: Table, /, *rest: Table, distinct: bool = True) -> Table:
16961696
"""Compute the set intersection of multiple table expressions.
16971697
16981698
The input tables must have identical schemas.
@@ -1772,7 +1772,7 @@ def intersect(self, table: Table, *rest: Table, distinct: bool = True) -> Table:
17721772
"""
17731773
return self._assemble_set_op(ops.Intersection, table, *rest, distinct=distinct)
17741774

1775-
def difference(self, table: Table, *rest: Table, distinct: bool = True) -> Table:
1775+
def difference(self, table: Table, /, *rest: Table, distinct: bool = True) -> Table:
17761776
"""Compute the set difference of multiple table expressions.
17771777
17781778
The input tables must have identical schemas.

0 commit comments

Comments
 (0)