@classmethod
def from_unsupported_dataobj_in_rstr_list(cls, allowed):
    """
        Compile time error. DO in restriction can only be combined with None type.
        """
    return cls(
        "DataObject in restriction list '%s' only valid with type(None)." %
        allowed)
