Skip to content

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

@ZeroIntensity

Description

@ZeroIntensity

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions