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 dd32fc0 commit b327afaCopy full SHA for b327afa
src/validators/literal.rs
@@ -126,11 +126,6 @@ impl<T: Debug> LiteralLookup<T> {
126
}
127
128
129
- // if the input is a Decimal type, we need to check if its value is in the expected_ints
130
- if let Ok(Some(v)) = self.validate_decimal(py, input) {
131
- return Ok(Some(v));
132
- }
133
-
134
if let Some(expected_strings) = &self.expected_str {
135
let validation_result = if input.as_python().is_some() {
136
input.exact_str()
@@ -170,6 +165,11 @@ impl<T: Debug> LiteralLookup<T> {
170
165
171
166
172
167
};
168
+
169
+ // if the input is a Decimal type, we need to check if its value is in the expected_ints
+ if let Ok(Some(v)) = self.validate_decimal(py, input) {
+ return Ok(Some(v));
+ }
173
Ok(None)
174
175
0 commit comments