Skip to content

Commit

Permalink
Make user a required argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Dec 18, 2024
1 parent ea3626e commit 2406c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2406c87

Please sign in to comment.