Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Toan Quach authored and Toan Quach committed Sep 6, 2023
1 parent 17e407f commit d1e5062
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/taipy/core/scenario/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,9 @@ def add_sequences(self, sequences: Dict[str, Union[List[Task], List[TaskId]]]):
"""
_scenario = _Reloader()._reload(self._MANAGER_NAME, self)
_sc_task_ids = set([task.id if isinstance(task, Task) else task for task in _scenario._tasks])

for name, tasks in sequences.items():
_seq_task_ids: Set[TaskId] = set([task.id if isinstance(task, Task) else task for task in tasks])
self.__check_sequence_tasks_exist_in_scenario_tasks(name, _seq_task_ids, self.id, _sc_task_ids)

# Need to parse twice the sequences to avoid adding some sequences and not others in case of exception
for name, tasks in sequences.items():
self.add_sequence(name, tasks)
Expand Down

0 comments on commit d1e5062

Please sign in to comment.