Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Mar 18, 2024
1 parent 50d86a8 commit 78f96d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/in_n_out/_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 78f96d9

Please sign in to comment.