From 10be4dc0bca098c5ed6bcdbc59611971ca2d7a5c Mon Sep 17 00:00:00 2001 From: Nikita Grishko Date: Mon, 11 Jun 2018 12:12:41 +0200 Subject: [PATCH] Removed extra f-strings (#196) --- pydantic/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydantic/types.py b/pydantic/types.py index bb80188..74aac9d 100644 --- a/pydantic/types.py +++ b/pydantic/types.py @@ -180,9 +180,9 @@ class ConstrainedNumberMeta(type): new_cls = type.__new__(cls, name, bases, dct) if new_cls.gt is not None and new_cls.ge is not None: - raise errors.ConfigError(f'Bounds gt and ge cannot be specified at the same time.') + raise errors.ConfigError('bounds gt and ge cannot be specified at the same time') if new_cls.lt is not None and new_cls.le is not None: - raise errors.ConfigError(f'Bounds lt and le cannot be specified at the same time.') + raise errors.ConfigError('bounds lt and le cannot be specified at the same time') return new_cls