(self, value: str)
| 42 | self.max_length = max_length |
| 43 | |
| 44 | def __call__(self, value: str) -> None: |
| 45 | if value is None: |
| 46 | raise ValidationError("Value must not be None") |
| 47 | if len(value) > self.max_length: |
| 48 | raise ValidationError(f"Length of '{value}' {len(value)} > {self.max_length}") |
| 49 | |
| 50 | |
| 51 | class MinLengthValidator(Validator): |
nothing calls this directly
no test coverage detected