def __init__(self, interval, timeout, retries):
        # interval
        if (not isinstance(interval, (int, float)) 
                or interval < MIN_INTERVAL 
                or MAX_INTERVAL > interval):
            log_msg = ('interval "{}" must be a number between {} and {}'.
                       format(interval, MIN_INTERVAL, MAX_INTERVAL))
            raise Error(log_msg)
        else:
            self.interval = interval

        # timeout
        if (not isinstance(timeout, (int, float)) 
                or timeout < MIN_TIMEOUT 
                or timeout > MAX_TIMEOUT):
            log_msg = ('timeout "{}" must be a number between {} and {}'.
                       format(timeout, MIN_TIMEOUT, MAX_TIMEOUT))
            raise Error(log_msg)
        else:
            self.timeout = timeout

        # retries
        if (not isinstance(retries, int) 
                or retries < MIN_RETRIES 
                or retries > MAX_RETRIES):
            log_msg = ('retries "{}" must be an int between {} and {}'.
                       format(retries, MIN_RETRIES, MAX_RETRIES))
            raise Error(log_msg)
        else:
            self.retries = retries
dataset/ETHPy150Open polaris-gslb/polaris-gslb/polaris_health/monitors/__init__.py/BaseMonitor.__init__/swapped operands of `>`