mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-04-13 05:34:23 +03:00
Fix flake8 and mypy warnings
This commit is contained in:
parent
d943583f26
commit
37127bcd02
|
@ -1047,7 +1047,8 @@ def _get_async_patched(fn: F, patched: PatchedCallable) -> F:
|
|||
patched.closing,
|
||||
)
|
||||
|
||||
return _patched
|
||||
return cast(F, _patched)
|
||||
|
||||
|
||||
def _get_sync_patched(fn: F, patched: PatchedCallable) -> F:
|
||||
@functools.wraps(fn)
|
||||
|
@ -1059,4 +1060,4 @@ def _get_sync_patched(fn: F, patched: PatchedCallable) -> F:
|
|||
patched.injections,
|
||||
patched.closing,
|
||||
)
|
||||
return _patched
|
||||
return cast(F, _patched)
|
||||
|
|
Loading…
Reference in New Issue
Block a user