From 01413df3db8e64437547f7fa6439a646fa116a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Flar=20Kutlu?= Date: Thu, 30 Nov 2023 06:14:07 +0100 Subject: [PATCH] Fix for a tiny typo in `_MinLengthValidator` (#1209) * tiny typo fix for min length validator's error string * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/attr/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attr/validators.py b/src/attr/validators.py index 18617fe6b..34d6b761d 100644 --- a/src/attr/validators.py +++ b/src/attr/validators.py @@ -550,7 +550,7 @@ 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):