@classmethod
def from_dataobj_in_rstr_list(cls, allowed):
    """
        Compile time error. DO in restriction cannot be combined other data types (expect None type).
        """
    return cls(
        "DataObjects not allowed in restriction lists '%s'. Use (<DataObject>, <default_value>)"
         % allowed)
