Pass {} to a TypedDict with no fields

Proprietary

TypedDict("TD") and TypedDict("TD", None) no longer create a TypedDict with no fields in Python 3.15. Pass an empty dict, as in TypedDict("TD", {}). Calls holding comments are left unchanged.

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

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.