← All recipes
Moderne licensed

Replace typing.Text with str

Recipe IDorg.openrewrite.python.migrate.ReplaceTypingTextArtifactopenrewrite-migrate-python

typing.Text is deprecated as of Python 3.11. It was an alias for str for Python 2/3 compatibility. Replace with str.

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.ReplaceTypingText

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

mod config recipes pip install openrewrite-migrate-python