Pass {} to a TypedDict with no fields
ProprietaryTypedDict("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. ReplaceTypedDictWithoutFieldsmod run . --recipe= org. openrewrite. python. migrate. ReplaceTypedDictWithoutFieldsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.