Unwrap tuple(), list() or set() around a collection literal

Proprietary

When tuple(), list(), or set() wraps a single list or tuple literal, remove the constructor and use the target literal form directly. Only calls to the builtin constructors are unwrapped, and set() of an empty literal is left alone because {} is a dict. A call on anything but a list or tuple literal, such as a comprehension or a name, is left alone.

org.openrewrite.python.cleanup.UnwrapIterableConstruction
mod run . --recipe=org.openrewrite.python.cleanup.UnwrapIterableConstruction

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