-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels