Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Oct 5, 2022
1 parent 8fd3877 commit 804cd22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flytekit/core/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def runs_before(self, other: Node):

def __rshift__(self, other: Node):
self.runs_before(other)
return self
return other

@property
def outputs(self):
Expand Down
6 changes: 3 additions & 3 deletions flytekit/core/promise.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def __hash__(self):
def __rshift__(self, other: typing.Union[Promise, VoidPromise]):
if not self.is_ready:
self.ref.node.runs_before(other.ref.node)
return self
return other

def with_var(self, new_var: str) -> Promise:
if self.is_ready:
Expand Down Expand Up @@ -563,7 +563,7 @@ def runs_before(self, other: Any):

def __rshift__(self, other: Any):
# See comment for runs_before
return self
return other

return Output(*promises) # type: ignore

Expand Down Expand Up @@ -679,7 +679,7 @@ def ref(self) -> NodeOutput:
def __rshift__(self, other: typing.Union[Promise, VoidPromise]):
if self.ref:
self.ref.node.runs_before(other.ref.node)
return self
return other

def with_overrides(self, *args, **kwargs):
if self.ref:
Expand Down

0 comments on commit 804cd22

Please sign in to comment.