google / google/yapf

Option like `SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED` but for `def` parameters

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

Is there a style option like `SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED`, except for `def` parameters? i.e., if I have something like the following, I want it to be left alone by yapf.

```python3
def foo(
a: str,
b: int,
c: bool = False,
):
```

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.