Skip to content

Commit ceec85c

Browse files
Apply suggestions from code review
Co-authored-by: David Montague <[email protected]>
1 parent 1ad6184 commit ceec85c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/errors/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ impl ErrorType {
502502
Self::IntFromFloat => "Input should be a valid integer, got a number with a fractional part",
503503
Self::IntParsingSize => "Unable to parse input string as an integer, exceeded maximum size",
504504
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",
505+
Self::FloatParsing => "Input should be a valid number, unable to parse string as a number",
506+
Self::FloatParsingSize => "Unable to parse input string as a number, exceeded maximum size",
507507
Self::BytesType => "Input should be a valid bytes",
508508
Self::BytesTooShort {..} => "Data should have at least {min_length} bytes",
509509
Self::BytesTooLong {..} => "Data should have at most {max_length} bytes",

tests/test_errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ def f(input_value, info):
232232
('less_than', 'Input should be less than 42.1', {'lt': 42.1}),
233233
('less_than_equal', 'Input should be less than or equal to 42.1', {'le': 42.1}),
234234
('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),
235+
('float_parsing', 'Input should be a valid number, unable to parse string as a number', None),
236+
('float_parsing_size', 'Unable to parse input string as a number, exceeded maximum size', None),
237237
('bytes_type', 'Input should be a valid bytes', None),
238238
('bytes_too_short', 'Data should have at least 42 bytes', {'min_length': 42}),
239239
('bytes_too_long', 'Data should have at most 42 bytes', {'max_length': 42}),

0 commit comments

Comments
 (0)