google / google/yapf

pylint violation - C0326

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

Save the following code in `x.py`:

```python
def f(x):
return int

def g(y: f(1)=2):
pass
```

`yapf < x.py` gives

```python
def f(x):
return int

def g(y: f(1) = 2):
pass
```

where pylint complains

```
def g(y: f(1) = 2):
^ (bad-whitespace)
```

Thanks!

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.