diff --git a/Cargo.toml b/Cargo.toml index c5bb6b8..9e32850 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -120,11 +120,11 @@ futures = "0.3" inventory = { version = "0.3", optional = true } once_cell = "1.14" pin-project-lite = "0.2" -pyo3 = "0.23" -pyo3-async-runtimes-macros = { path = "pyo3-async-runtimes-macros", version = "=0.23.0", optional = true } +pyo3 = "0.24.0" +pyo3-async-runtimes-macros = { path = "pyo3-async-runtimes-macros", version = "=0.24.0", optional = true } [dev-dependencies] -pyo3 = { version = "0.23", features = ["macros"] } +pyo3 = { version = "0.24.0", features = ["macros"] } [dependencies.async-std] version = "1.12" diff --git a/pyo3-async-runtimes-macros/Cargo.toml b/pyo3-async-runtimes-macros/Cargo.toml index 91f1b15..120fa50 100644 --- a/pyo3-async-runtimes-macros/Cargo.toml +++ b/pyo3-async-runtimes-macros/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pyo3-async-runtimes-macros" description = "Proc Macro Attributes for `pyo3-async-runtimes`" -version = "0.23.0" +version = "0.24.0" authors = [ "Andrew J Westlake ", "David Hewitt ", diff --git a/src/lib.rs b/src/lib.rs index 480e8a4..1a14628 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -398,10 +398,7 @@ use std::future::Future; use futures::channel::oneshot; use once_cell::sync::OnceCell; -use pyo3::{ - prelude::*, - types::{PyDict, PyTuple}, -}; +use pyo3::{prelude::*, types::PyDict}; static ASYNCIO: OnceCell = OnceCell::new(); static CONTEXTVARS: OnceCell = OnceCell::new(); @@ -579,7 +576,7 @@ impl PyEnsureFuture { fn call_soon_threadsafe<'py>( event_loop: &Bound<'py, PyAny>, context: &Bound, - args: impl IntoPyObject<'py, Target = PyTuple>, + args: impl pyo3::call::PyCallArgs<'py>, ) -> PyResult<()> { let py = event_loop.py();