Skip to content

Commit 37127bc

Browse files
committed
Fix flake8 and mypy warnings
1 parent d943583 commit 37127bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/dependency_injector/wiring.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,8 @@ async def _patched(*args, **kwargs):
10471047
patched.closing,
10481048
)
10491049

1050-
return _patched
1050+
return cast(F, _patched)
1051+
10511052

10521053
def _get_sync_patched(fn: F, patched: PatchedCallable) -> F:
10531054
@functools.wraps(fn)
@@ -1059,4 +1060,4 @@ def _patched(*args, **kwargs):
10591060
patched.injections,
10601061
patched.closing,
10611062
)
1062-
return _patched
1063+
return cast(F, _patched)

0 commit comments

Comments
 (0)