From c35fb9bc57a3b9c0027599a4395ab37af9d1df71 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Mon, 20 Nov 2023 10:35:31 +0100 Subject: [PATCH] fix: take in account #3578 --- src/coroutine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coroutine.rs b/src/coroutine.rs index a530184a1c3..564262f3bf4 100644 --- a/src/coroutine.rs +++ b/src/coroutine.rs @@ -100,7 +100,7 @@ impl Coroutine { } // if waker has been waken during future polling, this is roughly equivalent to // `await asyncio.sleep(0)`, so just yield `None`. - Ok(IterNextOutput::Yield(py.None())) + Ok(IterNextOutput::Yield(py.None().into())) } }