diff --git a/src/conversions/chrono.rs b/src/conversions/chrono.rs index 134724b2249..e7fb231f36f 100644 --- a/src/conversions/chrono.rs +++ b/src/conversions/chrono.rs @@ -39,6 +39,11 @@ //! }); //! } //! ``` + +// `chrono::Duration` has been renamed to `chrono::TimeDelta` and its constructor changed +// TODO: upgrade to Chrono 0.4.35+ after upgrading our MSRV to 1.61+ +#![allow(deprecated)] + use crate::exceptions::{PyTypeError, PyUserWarning, PyValueError}; #[cfg(Py_LIMITED_API)] use crate::sync::GILOnceCell;