Skip to content

Commit

Permalink
fix: take in account PyO3#3578
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Perez committed Nov 20, 2023
1 parent 391f1e0 commit c35fb9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coroutine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}
}

Expand Down

0 comments on commit c35fb9b

Please sign in to comment.