Skip to content

Use of deprecated asyncio.iscoroutinefunction #929

Closed
@ZeroIntensity

Description

@ZeroIntensity

asyncio.iscoroutinefunction is the same as inspect.iscoroutinefunction (since it's conception, I think), and is deprecated on 3.14 (IIRC, the plan is to remove it in 3.16).

It's used in a few places, such as here

return asyncio.iscoroutinefunction(obj) or inspect.isasyncgenfunction(obj)

I have a PR ready to switch things over to inspect.iscoroutinefunction -- since they're exactly the same, this won't break anything (and saves you guys a headache a few years down the line 😄)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions