← All recipes
Moderne licensed

Find deprecated @asyncio.coroutine decorator

Recipe IDorg.openrewrite.python.migrate.FindAsyncioCoroutineDecoratorArtifactopenrewrite-migrate-python

Find usage of the deprecated @asyncio.coroutine decorator which was removed in Python 3.11. Convert to async def syntax with await instead of yield from.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.python.migrate.FindAsyncioCoroutineDecorator

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-migrate-python