← All recipes
Moderne licensed

Replace ast.Ellipsis with ast.Constant

Recipe IDorg.openrewrite.python.migrate.ReplaceAstEllipsisArtifactopenrewrite-migrate-python

The ast.Ellipsis node type was deprecated in Python 3.8 and removed in Python 3.14. Replace with ast.Constant and check node.value is ....

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

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

mod config recipes pip install openrewrite-migrate-python