Skip to content

Commit

Permalink
reverting utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielePalaia committed May 23, 2024
1 parent 106bece commit 4be9a95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rstream/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from dataclasses import dataclass
from typing import Any, Callable, Generator, Optional

from .amqp import Message, _MessageProtocol
from .amqp import AMQPMessage, _MessageProtocol


@dataclass
Expand Down Expand Up @@ -54,7 +54,7 @@ class FilterConfiguration:
def __init__(
self,
values_to_filter: list[str],
predicate: Optional[Callable[[Message], bool]] = None,
predicate: Optional[Callable[[AMQPMessage], bool]] = None,
match_unfiltered: bool = False,
):
self._values_to_filter = values_to_filter
Expand All @@ -64,7 +64,7 @@ def __init__(
def values(self) -> list[str]:
return self._values_to_filter

def post_filler(self) -> Optional[Callable[[Message], bool]]:
def post_filler(self) -> Optional[Callable[[AMQPMessage], bool]]:
return self._predicate

def match_unfiltered(self) -> bool:
Expand Down

0 comments on commit 4be9a95

Please sign in to comment.