Skip to content

Commit aa1d43a

Browse files
committed
Make the predicate argument positional-only
This matches the `filter()` method. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 7c49e88 commit aa1d43a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frequenz/channels/experimental/_predicates.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class WithPrevious(Generic[ChannelMessageT]):
8585
def __init__(
8686
self,
8787
predicate: Callable[[ChannelMessageT, ChannelMessageT], bool],
88+
/,
8889
*,
8990
first_is_true: bool = True,
9091
) -> None:

0 commit comments

Comments
 (0)