Hi,
I've been playing around with your tool and noticed a potential issue.
When in adjacent lines the multiple assignment transformation is performed followed by a comprehension tranformation, the multiple assignments are correctly merged into a single line multi assignment. However, the code that would have been transformed into the comprehension simply dissapears (messing up the indentation in the process).
Example
defsolve(self):
provider=Provider(self._package, self._pool, self._io)
locked= {}
forpackageinself._locked.packages:
locked[package.name] =packagereturnlockedExpected Outcome
defsolve(self):
provider, locked=Provider(self._package, self._pool, self._io), {package.name: packageforpackageinself._locked.packages}
returnlockedActual Outcome
defsolve(self):
provider , locked=Provider(self._package, self._pool, self._io), {}
returnlockedBest,
Lars
Hi,
I've been playing around with your tool and noticed a potential issue.
When in adjacent lines the multiple assignment transformation is performed followed by a comprehension tranformation, the multiple assignments are correctly merged into a single line multi assignment. However, the code that would have been transformed into the comprehension simply dissapears (messing up the indentation in the process).
Example
Expected Outcome
Actual Outcome
Best,
Lars