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