google / google/yapf

Wrong indentation for a tuple arg to a function in a for statement.

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

Description

Formatting this with the google style:

```python
for x in f(a, (b,),): pass
```

Results in this:

```python
for x in f(
a,
(b,),
):
pass
```

Shouldn't the `(b,),` line be indented to match `a,`?

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.