diff --git a/src/attr/validators.py b/src/attr/validators.py index 18617fe6b..19907a36b 100644 --- a/src/attr/validators.py +++ b/src/attr/validators.py @@ -550,9 +550,10 @@ def __call__(self, inst, attr, value): We use a callable class to be able to change the ``__repr__``. """ if len(value) < self.min_length: - msg = f"Length of '{attr.name}' must be => {self.min_length}: {len(value)}" + msg = f"Length of '{attr.name}' must be >= {self.min_length}: {len(value)}" raise ValueError(msg) + def __repr__(self): return f""