google / google/yapf

Wrap line after variable annotation, if possible.

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

Description

Using yapf 0.29.0 with google style, I'm getting:

```python
dkfjghdfkjgdhfkgdfkjgh: Union[Slsdfjhdslfkj,
Gsdklfjdklsfjdsl] = (sdfkljdsklfjdsklfjsdklfj)
```

This is just my opinion of course, but I think it would look nicer as:

```python
dkfjghdfkjgdhfkgdfkjgh: Union[Slsdfjhdslfkj, Gsdklfjdklsfjdsl] = (
sdfkljdsklfjdsklfjsdklfj)
```

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.