r"""Add a subtask to the current task. Args: task (Task): The subtask to be added.
(self, task: "Task")
| 152 | self.parent.set_state(state) |
| 153 | |
| 154 | def add_subtask(self, task: "Task"): |
| 155 | r"""Add a subtask to the current task. |
| 156 | |
| 157 | Args: |
| 158 | task (Task): The subtask to be added. |
| 159 | """ |
| 160 | task.parent = self |
| 161 | self.subtasks.append(task) |
| 162 | |
| 163 | def remove_subtask(self, id: str): |
| 164 | r"""Remove a subtask from the current task. |
no outgoing calls
no test coverage detected