google / google/yapf

Option for a single line function?

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

A single line function (and method)
```
def fn(): return 10
```

is currently automatically formatted as:
```
def fn():
return 10
```

Could there be an option to keep a single line function intact?

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.