MCPcopy
hub / github.com/faif/python-patterns / is_satisfied_by

Method is_satisfied_by

patterns/behavioral/specification.py:47–51  ·  view source on GitHub ↗
(self, candidate: Union["User", str])

Source from the content-addressed store, hash-verified

45 self._other: Specification = other
46
47 def is_satisfied_by(self, candidate: Union["User", str]) -> bool:
48 return bool(
49 self._one.is_satisfied_by(candidate)
50 and self._other.is_satisfied_by(candidate)
51 )
52
53
54class OrSpecification(CompositeSpecification):

Callers

nothing calls this directly

Calls 1

is_satisfied_byMethod · 0.45

Tested by

no test coverage detected