We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ad6184 commit ceec85cCopy full SHA for ceec85c
src/errors/types.rs
@@ -502,8 +502,8 @@ impl ErrorType {
502
Self::IntFromFloat => "Input should be a valid integer, got a number with a fractional part",
503
Self::IntParsingSize => "Unable to parse input string as an integer, exceeded maximum size",
504
Self::FloatType => "Input should be a valid number",
505
- Self::FloatParsing => "Input should be a valid number, unable to parse string as an number",
506
- Self::FloatParsingSize => "Unable to parse input string as an number, exceeded maximum size",
+ Self::FloatParsing => "Input should be a valid number, unable to parse string as a number",
+ Self::FloatParsingSize => "Unable to parse input string as a number, exceeded maximum size",
507
Self::BytesType => "Input should be a valid bytes",
508
Self::BytesTooShort {..} => "Data should have at least {min_length} bytes",
509
Self::BytesTooLong {..} => "Data should have at most {max_length} bytes",
tests/test_errors.py
@@ -232,8 +232,8 @@ def f(input_value, info):
232
('less_than', 'Input should be less than 42.1', {'lt': 42.1}),
233
('less_than_equal', 'Input should be less than or equal to 42.1', {'le': 42.1}),
234
('float_type', 'Input should be a valid number', None),
235
- ('float_parsing', 'Input should be a valid number, unable to parse string as an number', None),
236
- ('float_parsing_size', 'Unable to parse input string as an number, exceeded maximum size', None),
+ ('float_parsing', 'Input should be a valid number, unable to parse string as a number', None),
+ ('float_parsing_size', 'Unable to parse input string as a number, exceeded maximum size', None),
237
('bytes_type', 'Input should be a valid bytes', None),
238
('bytes_too_short', 'Data should have at least 42 bytes', {'min_length': 42}),
239
('bytes_too_long', 'Data should have at most 42 bytes', {'max_length': 42}),
0 commit comments