Skip to content

Commit

Permalink
Fix wiring decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
rmk135 committed Oct 30, 2020
1 parent 63977a7 commit e4e77d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dependency_injector/wiring.py
Expand Up @@ -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():
Expand Down

0 comments on commit e4e77d0

Please sign in to comment.