Open
Description
There is no option that I can find for this, unlike #38 and #252.
Code:
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:
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.