google / google/yapf

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

Open
#585 6 comments 4 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

Input:

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

Output:

```python
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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.