From b3bdf058b5fadbaa90bbfb857756db9e90b8798d Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Thu, 2 Nov 2023 17:05:41 +0000 Subject: [PATCH] Use ``super()`` --- lib/galaxy/tools/parameters/basic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/tools/parameters/basic.py b/lib/galaxy/tools/parameters/basic.py index 6020b67f809a..aeaba75baa2f 100644 --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -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: @@ -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) @@ -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):