diff --git a/src/in_n_out/_store.py b/src/in_n_out/_store.py index fee18fd..ff30f09 100644 --- a/src/in_n_out/_store.py +++ b/src/in_n_out/_store.py @@ -778,7 +778,7 @@ def _exec(*args: P.args, **kwargs: P.kwargs) -> R: # first, get and call the provider functions for each parameter type: _injected_names: set[str] = set() for param in sig.parameters.values(): - if param.name not in bound.arguments: + if param.name not in bound.arguments or bound.arguments[param.name] is None: provided = self.provide(param.annotation) if provided is not None or is_optional(param.annotation): logger.debug(