google / google/yapf

Ternary expression is split strangely.

Open
#805 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

With yapf 0.29.0, google style, I'm getting this:

```python
next_playable_unit = self._next_playable_unit_callback(
None if self._prepared_playable_unit_id is None else self.
_playable_units[self._prepared_playable_unit_id])
```

I was expecting something more like this:

```python
next_playable_unit = self._next_playable_unit_callback(
None if self._prepared_playable_unit_id is None
else self._playable_units[self._prepared_playable_unit_id])
```

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.