def __getattr__(self, name: str) -> bool:
        """Convenience has_XYZ attributes for checking WDIOF bits in options"""
        if name.startswith('has_') and name[4:] in WDIOF:
            return bool(self.options & WDIOF[name[4:]])

        raise AttributeError("WatchdogInfo instance has no attribute '{0}'".format(name))
Convenience has_XYZ attributes for checking WDIOF bits in options
patroni/watchdog/linux.py