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
def solve(self):
provider = Provider(self._package, self._pool, self._io)
locked = {}
for package in self._locked.packages:
locked[package.name] = package
return locked
Expected Outcome
def solve(self):
provider, locked = Provider(self._package, self._pool, self._io), {package.name: package for package in self._locked.packages}
return locked
Actual Outcome
def solve(self):
provider , locked = Provider(self._package, self._pool, self._io), {}
return locked
Best,
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