diff --git a/src/in_n_out/_store.py b/src/in_n_out/_store.py index 2ef4e25..ea54d9e 100644 --- a/src/in_n_out/_store.py +++ b/src/in_n_out/_store.py @@ -775,7 +775,7 @@ def _exec(*args: P.args, **kwargs: P.kwargs) -> R: for param in sig.parameters.values(): if param.name not in bound.arguments: provided = self.provide(param.annotation) - if is_optional(param.annotation) or provided is not None: + if provided is not None or is_optional(param.annotation): logger.debug( " injecting %s: %s = %r", param.name,