landscapeio / landscape-issues

The public issue tracker for Landscape.io (https://landscape.io)
15 stars 1 forks source link

Python optional arguments (**kwargs) raise error message #266

Closed flennerhag closed 7 years ago

flennerhag commented 7 years ago

Landscape treats optional Python arguments as errors, when they are in fact a design feature. Hence the following code


def foo(a, b=None, c=None):
    # do some stuff

def func(a, **kwargs):
    return foo(a, **kwargs)

would cause an error message with regards to the **kwargs, as in the below picture. Any way around the issue?

screen shot 2017-01-12 at 12 30 28