Skip to content

Commit 13695f1

Browse files
committed
refactor(api)!: make isin/notin/cases/identical_to positional-only
1 parent da4cb1e commit 13695f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ibis/expr/types/generic.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def between(
572572
"""
573573
return ops.Between(self, lower, upper).to_expr()
574574

575-
def isin(self, values: Value | Sequence[Value]) -> ir.BooleanValue:
575+
def isin(self, values: Value | Sequence[Value], /) -> ir.BooleanValue:
576576
"""Check whether this expression's values are in `values`.
577577
578578
`NULL` values are propagated in the output. See examples for details.
@@ -690,7 +690,7 @@ def isin(self, values: Value | Sequence[Value]) -> ir.BooleanValue:
690690
else:
691691
return ops.InValues(self, values).to_expr()
692692

693-
def notin(self, values: Value | Sequence[Value]) -> ir.BooleanValue:
693+
def notin(self, values: Value | Sequence[Value], /) -> ir.BooleanValue:
694694
"""Check whether this expression's values are not in `values`.
695695
696696
Opposite of [`Value.isin()`](./expression-generic.qmd#ibis.expr.types.generic.Value.isin).
@@ -956,6 +956,7 @@ def case(self) -> bl.SimpleCaseBuilder:
956956
def cases(
957957
self,
958958
branch: tuple[Value, Value],
959+
/,
959960
*branches: tuple[Value, Value],
960961
else_: Value | None = None,
961962
) -> Value:
@@ -1118,7 +1119,7 @@ def collect(
11181119
distinct=distinct,
11191120
).to_expr()
11201121

1121-
def identical_to(self, other: Value) -> ir.BooleanValue:
1122+
def identical_to(self, other: Value, /) -> ir.BooleanValue:
11221123
"""Return whether this expression is identical to other.
11231124
11241125
Corresponds to `IS NOT DISTINCT FROM` in SQL.

0 commit comments

Comments
 (0)