Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Apr 22, 2024
1 parent 8bda78a commit 43bbeba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/in_n_out/_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,10 @@ 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 or bound.arguments[param.name] is None:
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(
Expand Down

0 comments on commit 43bbeba

Please sign in to comment.