Skip to content

Commit 6f90511

Browse files
committed
bugfix: correctly find 'with foo' in pipelines
1 parent 15969f0 commit 6f90511

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pyff/pipes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ def __init__(
264264
self.parent: Optional[Plumbing.Request] = None
265265

266266
def scope_of(self, entry_point: str) -> Plumbing.Request:
267-
if 'with {}'.format(entry_point) in self.plumbing.pipeline:
267+
for _p in self.plumbing.pipeline:
268+
if f'with {entry_point}' in _p:
269+
return self
270+
if self.parent is None:
268271
return self
269-
elif self.parent is None:
270-
return self
271-
else:
272-
return self.parent.scope_of(entry_point)
272+
return self.parent.scope_of(entry_point)
273273

274274
@property
275275
def id(self) -> Optional[str]:

0 commit comments

Comments
 (0)