diff --git a/kink/inject.py b/kink/inject.py index 552671b..506864d 100644 --- a/kink/inject.py +++ b/kink/inject.py @@ -120,7 +120,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)