google / google/yapf

Incorrect formatting of decorator arguments

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

This code should be formatted validly, but yapf changes the tab in the decorator to 1 space with default configs.
```
def a(x):
return lambda b: b

#yapf: disable
@a(
(100,100)
)
def b():
pass
#yapf: enable
```

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.