From e4e77d0cdbf55394022862befa9a87949794b371 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Fri, 30 Oct 2020 16:55:37 -0400 Subject: [PATCH] Fix wiring decorator --- src/dependency_injector/wiring.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dependency_injector/wiring.py b/src/dependency_injector/wiring.py index 555ebb1d..f169a7e8 100644 --- a/src/dependency_injector/wiring.py +++ b/src/dependency_injector/wiring.py @@ -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():