Simplify identity comprehension to list()/set() call

Proprietary

A comprehension that simply passes through each element unchanged is equivalent to calling list() or set() on the iterable. It is left alone where list or set is bound in an enclosing scope.

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

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