ivankorobkov / python-inject

Python dependency injection
Apache License 2.0
694 stars 79 forks source link

@param does not allow to call the function with positional parameters #12

Closed scharf closed 10 years ago

scharf commented 10 years ago

When a function is decorated with with @param, the function cannot be called with positional arguments:

@param('a',A)
def f(a):
    return a

Then a call with positional arguments fails:

f(1)
ivankorobkov commented 10 years ago

Done in #13