Specification pattern: Difference between revisions

Content deleted Content added
Tag: Reverted
m Reverted edits by 80.91.200.89 (talk) to last revision by 2A01:E0A:84B:9950:BD4B:293D:F4F4:D0A: editing tests
Line 261:
def is_satisfied_by(self, candidate: Any) -> bool:
return self.first.is_satisfied_by(candidate) and self.second.is_satisfied_by(candidate)
 
""" мем """
@dataclass(frozen=True)
class OrSpecification(BaseSpecification):