Skip to content

Commit

Permalink
Use super()
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Nov 2, 2023
1 parent 2720b0d commit b3bdf05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ def get_options(self, trans, other_values):
def get_initial_value(self, trans, other_values):
if self.default_value is not None:
return self.default_value
return SelectToolParameter.get_initial_value(self, trans, other_values)
return super().get_initial_value(trans, other_values)

def get_legal_values(self, trans, other_values, value):
if self.data_ref not in other_values and not trans.workflow_building_mode:
Expand Down Expand Up @@ -2606,7 +2606,7 @@ class DirectoryUriToolParameter(SimpleTextToolParameter):

def __init__(self, tool, input_source, context=None):
input_source = ensure_input_source(input_source)
SimpleTextToolParameter.__init__(self, tool, input_source)
super().__init__(tool, input_source)

def validate(self, value, trans=None):
super().validate(value, trans=trans)
Expand All @@ -2629,7 +2629,7 @@ class RulesListToolParameter(BaseJsonToolParameter):

def __init__(self, tool, input_source, context=None):
input_source = ensure_input_source(input_source)
BaseJsonToolParameter.__init__(self, tool, input_source)
super().__init__(tool, input_source)
self.data_ref = input_source.get("data_ref", None)

def to_dict(self, trans, other_values=None):
Expand Down

0 comments on commit b3bdf05

Please sign in to comment.