@classmethod
def from_mixed_value_and_type(cls, allowed):
    """
        Compile time error. Restriction syntax not allowed.
        """
    return cls("Mixed type and value restrictions unsupported '%s'" % allowed)
