Skip to content

Commit c175cfd

Browse files
committed
Add type call info to the Where function
1 parent 3909fdc commit c175cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func_adl/object_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def Select(self, f: Union[str, ast.Lambda, Callable[[T], S]]) -> 'ObjectStream[S
9494
return ObjectStream[S](function_call("Select",
9595
[n_stream.query_ast, cast(ast.AST, n_ast)]))
9696

97-
def Where(self, filter: Union[str, ast.Lambda, Callable]) -> 'ObjectStream[T]':
97+
def Where(self, filter: Union[str, ast.Lambda, Callable[[T], bool]]) -> 'ObjectStream[T]':
9898
r'''
9999
Filter the object stream, allowing only items for which `filter` evaluates as true through.
100100

0 commit comments

Comments
 (0)