def _is_expired(self, ttl):
        """
        Is a cached index with a given ttl expired?
        """
        if ttl == -1:
            # no expiration
            return False
        if ttl == -2:
            # no key; let's call that "not expired"
            return False
        age = max(0, self.versions_long_ttl - ttl)
        return self.versions_short_ttl >= age
dataset/ETHPy150Open jessemyers/cheddar/cheddar/index/remote.py/CachedRemoteIndex._is_expired/swapped operands of `>=`