Replace typing.Callable with collections.abc.Callable

Proprietary

PEP 585 deprecated typing.Callable in Python 3.9. Replace with collections.abc.Callable for type annotations.

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

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