Replace asyncio.iscoroutinefunction() with inspect.iscoroutinefunction()

Proprietary

asyncio.iscoroutinefunction() was deprecated in Python 3.14 and is scheduled for removal in Python 3.16. Use inspect.iscoroutinefunction() instead.

org.openrewrite.python.migrate.ReplaceAsyncioIscoroutinefunction
mod run . --recipe=org.openrewrite.python.migrate.ReplaceAsyncioIscoroutinefunction

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change import