Find async_timeout imports left to migrate

Proprietary

Mark each import of async_timeout. Run after org.openrewrite.python.migrate.ReplaceAsyncTimeoutWithAsyncio, it lists the uses that need a hand migration to asyncio.timeout. An import under an if or a try, typically a fallback chosen by sys.version_info, is marked as one to drop once the project requires Python 3.11.

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

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