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 9aea492 commit bff8e3bCopy full SHA for bff8e3b
src/serializers/config.rs
@@ -116,14 +116,10 @@ impl TimedeltaMode {
116
Ok(d.to_string().into_py(py))
117
}
118
Self::SecondsFloat => {
119
- // convert to int via a py timedelta not duration since we know this this case the input would have
120
- // been a py timedelta
121
let seconds: f64 = either_delta.total_seconds()?;
122
Ok(seconds.into_py(py))
123
124
Self::MillisecondsFloat => {
125
126
127
128
let object: Bound<PyFloat> = PyFloat::new_bound(py, seconds * 1000.0);
129
Ok(object.into_py(py))
0 commit comments