W503: yapf inserts line break before rather than after a '-' binary operator
Open
bug
- Dominant language
- Python
- Stars
- 14k
- Forks
- 904
- PR merge metrics
- No merged PRs in 30d
Description
There is no option that I can find for this, unlike #38 and #252.
Code:
```python
import inspect
def get_default_of(func, argname):
argspec_of_func = inspect.getargspec(func)
return argspec_of_func.defaults[argspec_of_func.args.index(argname) - len(argspec_of_func.args)]
```
Result:
```python
import inspect
def get_default_of(func, argname):
argspec_of_func = inspect.getargspec(func)
return argspec_of_func.defaults[argspec_of_func.args.index(argname)
- len(argspec_of_func.args)]
```
This yields W503 for pyflakes: line break before binary operator.
Contributor guide
Assessment
This issue has not been assessed yet.