from typing import Any


def intervalMatch(ruleValLower, ruleValUpper, featureVal) :
    """ Check to see if featureVal is in the interval defined by [ruleValLower, ruleValUpper)
    """

    # Any in lower bound matches all values, (upper bound doesn't matter)
    if ruleValLower == Any :
        return True

    if ruleValLower <= featureVal :
        # Any in upper bound means infinitity
        if featureVal < ruleValUpper or ruleValUpper == Any :
            return True
    
    return False