Skip to content

Commit

Permalink
Review suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Ronnie Dutta <[email protected]>
  • Loading branch information
wxtim and MetRonnie committed Oct 31, 2024
1 parent a67855a commit a78b95d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cylc/flow/prerequisite.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def _eval_satisfied(self) -> bool:

def satisfy_me(
self, outputs: Iterable['Tokens'],
mode: "Optional[Union[RunMode, str]]" = RunMode.LIVE
mode: Optional[RunMode] = RunMode.LIVE
) -> 'Set[Tokens]':
"""Attempt to satisfy me with given outputs.
Expand Down
2 changes: 1 addition & 1 deletion cylc/flow/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@ def spawn_on_all_outputs(
if completed_only:
c_task.satisfy_me(
[itask.tokens.duplicate(task_sel=message)],
mode=itask.run_mode # type: ignore
mode=itask.run_mode
)
self.data_store_mgr.delta_task_prerequisite(c_task)
self.add_to_pool(c_task)
Expand Down
4 changes: 3 additions & 1 deletion cylc/flow/task_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,9 @@ def state_reset(
return False

def satisfy_me(
self, task_messages: 'Iterable[Tokens]', mode: "RunMode" = RunMode.LIVE
self,
task_messages: 'Iterable[Tokens]',
mode: Optional[RunMode] = RunMode.LIVE,
) -> 'Set[Tokens]':
"""Try to satisfy my prerequisites with given output messages.
Expand Down
3 changes: 2 additions & 1 deletion cylc/flow/task_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from typing import (
TYPE_CHECKING,
Dict,
Optional,
Iterable,
List,
Set,
Expand Down Expand Up @@ -325,7 +326,7 @@ def __call__(
def satisfy_me(
self,
outputs: Iterable['Tokens'],
mode: "RunMode",
mode: "Optional[RunMode]",
) -> Set['Tokens']:
"""Try to satisfy my prerequisites with given outputs.
Expand Down

0 comments on commit a78b95d

Please sign in to comment.