Pass [] to a NamedTuple with no fields
ProprietaryNamedTuple("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. ReplaceNamedTupleWithoutFieldsmod run . --recipe= org. openrewrite. python. migrate. ReplaceNamedTupleWithoutFieldsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.