Replace keyword-argument NamedTuple fields with a field list
ProprietaryThe undocumented NamedTuple("Point", x=int, y=int) syntax was removed in Python 3.15. Pass the fields as a list of (name, type) pairs instead. Calls holding comments are left unchanged.
org. openrewrite. python. migrate. ReplaceNamedTupleKeywordFieldsmod run . --recipe= org. openrewrite. python. migrate. ReplaceNamedTupleKeywordFieldsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.