Structural subtype checking for __subclasshook__ consumers.
check_methods(subclass: type, *method_names: str) -> bool
Return True when subclass has all the named callable attributes.
Source code in src/forging_blocks/foundation/ports/_check_methods.py
| def check_methods(subclass: type, *method_names: str) -> bool:
"""Return ``True`` when *subclass* has all the named callable attributes."""
return all(callable(getattr(subclass, name, None)) for name in method_names)
|