Skip to content

Commit

Permalink
Make the predicate argument positional-only
Browse files Browse the repository at this point in the history
This matches the `filter()` method.

Signed-off-by: Leandro Lucarella <[email protected]>
  • Loading branch information
llucax committed Dec 4, 2024
1 parent 7c49e88 commit aa1d43a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frequenz/channels/experimental/_predicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class WithPrevious(Generic[ChannelMessageT]):
def __init__(
self,
predicate: Callable[[ChannelMessageT, ChannelMessageT], bool],
/,
*,
first_is_true: bool = True,
) -> None:
Expand Down

0 comments on commit aa1d43a

Please sign in to comment.