Pass [] to a NamedTuple with no fields

Proprietary

NamedTuple("NT") and NamedTuple("NT", None) raise a TypeError in Python 3.15. Pass an empty list, as in NamedTuple("NT", []). Calls holding comments are left unchanged.

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

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