Skip to content

Commit 2853a4c

Browse files
serlcpcloud
authored andcommitted
fix(typing): add bool as accepted type for Table.filter
1 parent 8161b86 commit 2853a4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ibis/expr/types/relations.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2851,7 +2851,11 @@ def drop(self, *fields: str | Selector) -> Table:
28512851

28522852
def filter(
28532853
self,
2854-
*predicates: ir.BooleanValue | Sequence[ir.BooleanValue] | IfAnyAll | Deferred,
2854+
*predicates: ir.BooleanValue
2855+
| bool
2856+
| Sequence[ir.BooleanValue | bool]
2857+
| IfAnyAll
2858+
| Deferred,
28552859
) -> Table:
28562860
"""Select rows from `table` based on `predicates`.
28572861

0 commit comments

Comments
 (0)