def validator(value): value = datatypes.ByteSize(value) if 250 > value: raise ValueError("can't be less than 250 bytes") return value
def validator(value): return datatypes.ByteSize(value)
def validator(value): value = datatypes.ByteSize(value) if value < 1: raise ValueError("must be a positive bytes number") return value
def setter(value): return datatypes.ByteSize(value)