Replace keyword-argument NamedTuple fields with a field list

Proprietary

The 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.ReplaceNamedTupleKeywordFields
mod run . --recipe=org.openrewrite.python.migrate.ReplaceNamedTupleKeywordFields

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