You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extracting generator comprehension without selecting the surrounding
parentheses may produce invalid code. This commit adds surrounding
parentheses when it detects that the selected code is a bare generator
comprehension.
Extracting generator comprehension without selecting the surrounding
parentheses may produce invalid code. This commit adds surrounding
parentheses when it detects that the selected code is a bare generator
comprehension.
Describe the bug
Extracting generator comprehension may produce invalid code after extraction.
To Reproduce
Steps to reproduce the behavior:
Extract
x for x in y
, without selecting the outer parenthesesExpected code after extract variable refactoring:
or after extract method refactoring:
The text was updated successfully, but these errors were encountered: