Skip to content

Commit

Permalink
Fix typehints after inject as they are already solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishka17 committed Feb 21, 2025
1 parent c8ed6a9 commit 037f423
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dishka/integrations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ def wrap_injection(
else:
new_annotations = hints.copy()
new_params = list(func_signature.parameters.values())
# fix hints
new_params = [
param.replace(annotation=hints.get(param.name, param.annotation))
for param in new_params
]

auto_injected_func: Callable[P, T | Awaitable[T]]
if additional_params:
Expand Down

0 comments on commit 037f423

Please sign in to comment.