@classmethod
def from_unsupported(cls, allowed):
    """
        Compile time error. Restriction syntax is incorrect.
        """
    return cls("Malformed restriction. Allowed '%s' is of type '%s'." % (
        allowed, type(allowed)))
