mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-29 13:04:02 +03:00
Fix wiring decorator
This commit is contained in:
parent
63977a73b2
commit
e4e77d0cdb
|
@ -286,6 +286,7 @@ def _patch_with_injections(fn, injections, closing):
|
|||
|
||||
|
||||
def _get_patched(fn, injections, closing):
|
||||
@functools.wraps(fn)
|
||||
def _patched(*args, **kwargs):
|
||||
to_inject = kwargs.copy()
|
||||
for injection, provider in injections.items():
|
||||
|
|
Loading…
Reference in New Issue
Block a user