From 32445436ba7ae7b90e07530885e04fe7f081a2cf Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 6 Mar 2024 15:39:10 +0100 Subject: [PATCH] Chrono: allow deprecation warning until upgrading to 0.4.35+ Requirering 0.4.35 is blocked on MSRV (Chrono: 1.61, PyO3: 1.56) --- src/conversions/chrono.rs | 5 +++++ 1 file changed, 5 insertions(+) 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;