Skip to content

Commit

Permalink
Dependency chain paths
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Mar 2, 2023
1 parent d52642e commit b2a536c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/in_n_out/_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,16 @@ def _exec(*args: P.args, **kwargs: P.kwargs) -> R:
_injected_names,
)
try:
path = []
for k, v in bound.arguments.items():
if hasattr(v, "_path"):
v._path.append(k)
v._path.insert(0, path)
else:
v._path = [path, k]
result = func(**bound.arguments)
if result is not None:
result._path = path
except TypeError as e:
if "missing" not in e.args[0]:
raise # pragma: no cover
Expand Down

0 comments on commit b2a536c

Please sign in to comment.