Skip to content

Commit 772a549

Browse files
committed
only strict decimal for int
1 parent ce9191d commit 772a549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/input_python.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
248248
str_as_int(self, s)
249249
} else if self.is_exact_instance_of::<PyFloat>() {
250250
float_as_int(self, self.extract::<f64>()?)
251-
} else if let Ok(decimal) = self.validate_decimal(strict, self.py()) {
251+
} else if let Ok(decimal) = self.validate_decimal(true, self.py()) {
252252
decimal_as_int(self, &decimal.into_inner())
253253
} else if let Ok(float) = self.extract::<f64>() {
254254
float_as_int(self, float)

0 commit comments

Comments
 (0)