google / google/yapf

Collapsing lambdas onto too-long line

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

Description

yapf (tested with 2c13f6f) turns the following:

```python
lambda: (
lambda: b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
)
```

into the following:

```python
lambda: (lambda: b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00")
```

Unfortunately this results in a line that is 81 characters long, while the former correctly fit into 80 characters.

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.