-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Labels
Milestone
Description
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
pytest-asyncio/pytest_asyncio/plugin.py
Line 179 in cf10674
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 π)
edgarrmondragon