diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 77480d6ffa75..38aac43223e2 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -7895,7 +7895,7 @@ def top_level_stored_workflow(self): """ return self.top_level_workflow.stored_workflow - def copy(self, user=None): + def copy(self, user: User): """Copy a workflow for a new StoredWorkflow object. Pass user if user-specific information needed. @@ -8206,7 +8206,7 @@ def workflow_output_for(self, output_name): break return target_output - def copy_to(self, copied_step, step_mapping, user=None): + def copy_to(self, copied_step: "WorkflowStep", step_mapping: Dict[int, "WorkflowStep"], user: User): copied_step.order_index = self.order_index copied_step.type = self.type copied_step.tool_id = self.tool_id