From 78f96d9b53dc1a86a4410a6822b3687de695ec5b Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Mon, 18 Mar 2024 12:47:16 -0400 Subject: [PATCH] reorder --- src/in_n_out/_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,