From 374d32e341231957abe42d912218214b52c07fe1 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Mon, 15 Apr 2024 10:26:09 +0100 Subject: [PATCH] errors --- src/textual/validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textual/validation.py b/src/textual/validation.py index bbb3cec7d8..bc490829cf 100644 --- a/src/textual/validation.py +++ b/src/textual/validation.py @@ -315,7 +315,7 @@ def describe_failure(self, failure: Failure) -> str | None: A string description of the failure. """ if isinstance(failure, Number.NotANumber): - return f"Must be a valid number." + return "Must be a valid number." elif isinstance(failure, Number.NotInRange): if self.minimum is None and self.maximum is not None: return f"Must be less than or equal to {self.maximum}." @@ -364,7 +364,7 @@ def describe_failure(self, failure: Failure) -> str | None: A string description of the failure. """ if isinstance(failure, Integer.NotAnInteger): - return f"Must be a valid integer." + return "Must be a valid integer." elif isinstance(failure, Integer.NotInRange): if self.minimum is None and self.maximum is not None: return f"Must be less than or equal to {self.maximum}."