Rewrite core internals in a more object oriented fashion.
class BaseMatcher:
def message(self, *, actual=None, **kwargs) -> str:
...
def _match(self, *, actual=None, **kwargs):
...
def _negate(self, *, actual=None, **kwargs):
...
def __call__(self, *, actual=None, **kwargs) -> bool:
...
Rewrite core internals in a more object oriented fashion.
actualandexpected) fromBaseExpectationto a new base classequalas matcher #37beas matcher #38containas matcher #39be_contained_inas matcher #41be_emptyas matcher #40be_trueas matcher #42be_truthyas matcher #43be_falseas matcher #44be_falseyas matcher #45be_of_typeas matcher #46inheritas matcher #52greater_thanas matcher #51greater_than_or_equalas matcher #50lesser_than_or_equalas matcher #49lessert_thanas matcher #48be_numericas matcher #47