Skip to content

asyncio.Task.get_coro can return None on 3.12+ #12440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ZeroIntensity opened this issue Jul 27, 2024 · 0 comments · Fixed by #12445
Closed

asyncio.Task.get_coro can return None on 3.12+ #12440

ZeroIntensity opened this issue Jul 27, 2024 · 0 comments · Fixed by #12445
Labels
topic: asyncio Asyncio-related issues

Comments

@ZeroIntensity
Copy link
Member

This was discovered when looking at #122332 on CPython.

With 3.12's new asyncio.eager_task_factory, Task.get_coro() is able to return None (see here). This needs to be reflected in the stubs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: asyncio Asyncio-related issues
Projects
None yet
2 participants