Simplify identity comprehension to list()/set() call
ProprietaryA 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. IdentityComprehensionmod run . --recipe= org. openrewrite. python. cleanup. IdentityComprehensionInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.