(*restrictions)
return {'restrict': list(restrictions)}
Create the metadata for a restricted dataclass field
Create the metadata for a restricted dataclass field
Create the metadata for a restricted dataclass field
def restrict_to(*restrictions):
    """Create the metadata for a restricted dataclass field"""
    return {'restrict': list(restrictions)}
def restrict_to ( * restrictions ) : return { 'restrict' : list ( restrictions ) }