Migrate async-timeout to asyncio.timeout
ProprietaryReplace the async-timeout package with asyncio.timeout, which Python 3.11 added to the standard library, and drop the sys.version_info fallbacks to it. Only run it on projects that require Python 3.11 or later, as org.openrewrite.python.migrate.UpgradeToPython311 and org.openrewrite.python.migrate.MigrateAsyncTimeout do. The uses left for a hand migration are marked, and async-timeout is removed from each project once none of its sources import async_timeout.
org. openrewrite. python. migrate. MigrateAsyncTimeoutToAsynciomod run . --recipe= org. openrewrite. python. migrate. MigrateAsyncTimeoutToAsyncioInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.