Skip to content

Commit

Permalink
Merge pull request #66 from rspnijones/master
Browse files Browse the repository at this point in the history
Bugfix: @Inject was not resolving all arguments when used with kwargs
  • Loading branch information
dkraczkowski authored Oct 19, 2024
2 parents 55aa8e1 + 8e12738 commit f605a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kink/inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _resolve_kwargs(args, kwargs) -> dict:
passed_kwargs[parameters_name[key]] = value

# prioritise passed kwargs and args resolving
if len(passed_kwargs) == len(parameters_name):
if set(passed_kwargs.keys()) == set(parameters_name):
return passed_kwargs

resolved_kwargs = _resolve_function_kwargs(binding, parameters_name, parameters, container)
Expand Down

0 comments on commit f605a30

Please sign in to comment.