Type fixes for workflow_run_dict

This commit is contained in:
mvdbeek
2025-05-12 10:54:44 +02:00
parent a52b78bf16
commit d9ea2fde61
+5 -2
View File
@@ -65,6 +65,7 @@ from galaxy.tools import (
DatabaseOperationTool,
DefaultToolState,
get_safe_version,
Tool,
)
from galaxy.tools.execute import (
execute,
@@ -1856,7 +1857,7 @@ class ToolModule(WorkflowModule):
self.tool_id = tool_id
self.tool_version = str(tool_version) if tool_version else None
self.tool_uuid = tool_uuid
self.tool = None
self.tool: Optional[Tool] = None
if getattr(trans.app, "toolbox", None):
self.tool = trans.app.toolbox.get_tool(
tool_id, tool_version=tool_version, exact=exact_tools, tool_uuid=tool_uuid, user=trans.user
@@ -2106,7 +2107,9 @@ class ToolModule(WorkflowModule):
params["on_string"] = "input dataset(s)"
params["tool"] = self.tool
extra_kwds["label"] = fill_template(
tool_output.label, context=params, python_template_version=self.tool.python_template_version
tool_output.label,
context=params,
python_template_version=self.tool.python_template_version,
)
except Exception:
pass