def error(self, *, field): return ValidationError('error', field=field)
def validate_lower_case(value): if not value.islower(): return ValidationError('Only lowercase values are allowed') return value
def validation_error(self, reason: str) -> ValidationError: return ValidationError(reason, field=self)
def error(self, *, field): return ValidationError("error", field=field)