One check of a brand. expected names what passes (False reads
"Expected <expected>"); message replaces every failure's text.
Attributes#
| Attribute | Type | Description |
|---|---|---|
predicate | Callable[[A], FilterOutput] | |
expected | str | None = None | |
message | str | None = None | |
aborted | bool = False |
Functions#
__init__#
__init__(predicate, expected=None, message=None, aborted=False) -> None| Parameter | Type | Description |
|---|---|---|
predicate | Callable[[A], FilterOutput] | |
expected | str | None = None | |
message | str | None = None | |
aborted | bool = False |
abort#
abort() -> Filter[A]This filter, stopping the checks after it when it fails.
Returns Filter[A]
def abort(self) -> Filter[A]:
"""This filter, stopping the checks after it when it fails."""
return replace(self, aborted=True)