We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d943583 commit 37127bcCopy full SHA for 37127bc
src/dependency_injector/wiring.py
@@ -1047,7 +1047,8 @@ async def _patched(*args, **kwargs):
1047
patched.closing,
1048
)
1049
1050
- return _patched
+ return cast(F, _patched)
1051
+
1052
1053
def _get_sync_patched(fn: F, patched: PatchedCallable) -> F:
1054
@functools.wraps(fn)
@@ -1059,4 +1060,4 @@ def _patched(*args, **kwargs):
1059
1060
patched.injections,
1061
1062
1063
0 commit comments