Fix wiring decorator

This commit is contained in:
Roman Mogylatov 2020-10-30 16:55:37 -04:00
parent 63977a73b2
commit e4e77d0cdb

View File

@ -286,6 +286,7 @@ def _patch_with_injections(fn, injections, closing):
def _get_patched(fn, injections, closing): def _get_patched(fn, injections, closing):
@functools.wraps(fn)
def _patched(*args, **kwargs): def _patched(*args, **kwargs):
to_inject = kwargs.copy() to_inject = kwargs.copy()
for injection, provider in injections.items(): for injection, provider in injections.items():