yapf icon indicating copy to clipboard operation
yapf copied to clipboard

E125 continuation line with same indent as next logical line with for loop

Open danvk opened this issue 7 years ago • 6 comments

Input:

for row_2, key in enumerate(
        ['parcel_area', 'building_area_low', 'building_area_high']):
    update(row_2 + 2, key)

Output:

for row_2, key in enumerate(
    ['parcel_area', 'building_area_low', 'building_area_high']):
    update(row_2 + 2, key)

With flake8, this results in the following error for the second line:

E125 continuation line with same indent as next logical line
$ yapf --version
yapf 0.22.0

danvk avatar Jul 03 '18 15:07 danvk

Issue still exists as of yapf 0.25.0

praveen-palanisamy avatar Dec 10 '18 23:12 praveen-palanisamy

Issue still exists as of yapf 0.28.0

kkew3 avatar Aug 09 '19 14:08 kkew3

Still an issue in version 0.29.0

urosran avatar Jun 23 '20 15:06 urosran

Still an issue in version 0.30.0

kkew3 avatar Sep 03 '20 16:09 kkew3

Any suggestions for working around this? Thanks!

nvaytet avatar Aug 03 '21 14:08 nvaytet

Still an issue in version 0.32.0

yewentao256 avatar Jul 18 '22 09:07 yewentao256