Upgrade to Pydantic 2.14

Proprietary

Migrate code affected by changes introduced in Pydantic 2.14 (and 2.10-2.13). Flags eval_type_backport usage, whose support 2.14 removed.

org.openrewrite.python.migrate.pydantic.UpgradeToPydantic214
mod run . --recipe=org.openrewrite.python.migrate.pydantic.UpgradeToPydantic214

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. Upgrade to Pydantic 2.13
  2. Find eval_type_backport usage removed in Pydantic 2.14