Tweak wording for "less than" Range error

Keeping it consistent!
This commit is contained in:
Steve C 2022-06-07 01:36:21 -04:00 committed by GitHub
parent 3aa55ba1ed
commit 98ca16ef67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -607,7 +607,7 @@ class RangeError(BadArgument):
if minimum is None and maximum is not None:
label = f'no more than {maximum}'
elif minimum is not None and maximum is None:
label = f'not less than {minimum}'
label = f'no less than {minimum}'
elif maximum is not None and minimum is not None:
label = f'between {minimum} and {maximum}'