Replace deprecated asyncio.iscoroutinefunction with inspect.iscoroutinefunction#13890
Replace deprecated asyncio.iscoroutinefunction with inspect.iscoroutinefunction#13890edgarrmondragon wants to merge 2 commits into
asyncio.iscoroutinefunction with inspect.iscoroutinefunction#13890Conversation
…utinefunction` Deprecated in Python 3.14 and will be removed in Python 3.16.
That's a good point. Final release of Python 3.14.0 is scheduled for 2025-10-07, and the first RC is only a little over a week away at this point, so I think
are good reasons to do this at this point.
If you want to wait, the earliest I'd recommend is when final 3.14.0 comes out, but that's of course completely up to you. |
There was a problem hiding this comment.
I think we should wait until all pending PRs (or most of them) have been reviewed and merged, then make sure we haven't introduced any new cases where deprecated call is used and then merge this.
Also, we need to check for other deprecated methods used as well.
I think this will happen automatically when Python 3.16 is released and FastAPI officially supports it (will start running tests on Python 3.16)
|
See also: #14021 |

Deprecated in Python 3.14 and will be removed in Python 3.16.