google / google/yapf

continuation_align_style=FIXED causes wrong indentation for dictionary layer 2 indentation

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

Description

```
[style]
based_on_style=pep8
continuation_align_style=FIXED
```

reformats:
```
class CLI(object):
def __init__(self):
self.modes = {
'request': self.request,
'response': self.response,
'parse': {
'request': self.parse_request,
'response': self.parse_response,
}
}
```

into:
```
class CLI(object):
def __init__(self):
self.modes = {
'request': self.request,
'response': self.response,
'parse': {
'request': self.parse_request,
'response': self.parse_response,
}
}
```

(nothing should be changed at all)

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.