From aa1d43a51460025db9274743bf8d9f8a913bda66 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 4 Dec 2024 09:49:24 +0100 Subject: [PATCH] Make the predicate argument positional-only This matches the `filter()` method. Signed-off-by: Leandro Lucarella --- src/frequenz/channels/experimental/_predicates.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frequenz/channels/experimental/_predicates.py b/src/frequenz/channels/experimental/_predicates.py index b6e5930b..90ab5a55 100644 --- a/src/frequenz/channels/experimental/_predicates.py +++ b/src/frequenz/channels/experimental/_predicates.py @@ -85,6 +85,7 @@ class WithPrevious(Generic[ChannelMessageT]): def __init__( self, predicate: Callable[[ChannelMessageT, ChannelMessageT], bool], + /, *, first_is_true: bool = True, ) -> None: