improve typing of lib/galaxy/workflow/run_request.py

This commit is contained in:
Michael R. Crusoe
2021-11-11 11:55:04 +01:00
parent 1f33bbe809
commit c30437d576
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import json
import logging
import uuid
from typing import Dict
from galaxy import (
exceptions,
@@ -110,7 +111,7 @@ def _normalize_step_parameters(steps, param_map, legacy=False, already_normalize
if step.type == "subworkflow" and param_dict:
if not already_normalized:
raise exceptions.RequestParameterInvalidException("Specifying subworkflow step parameters requires already_normalized to be specified as true.")
subworkflow_param_dict = {}
subworkflow_param_dict: Dict[str, Dict[str, str]] = {}
for key, value in param_dict.items():
step_index, param_name = key.split("|", 1)
if step_index not in subworkflow_param_dict:
-2
View File
@@ -532,8 +532,6 @@ check_untyped_defs = False
check_untyped_defs = False
[mypy-galaxy.config.script]
check_untyped_defs = False
[mypy-galaxy.workflow.run_request]
check_untyped_defs = False
[mypy-galaxy.visualization.plugins.interactive_environments]
check_untyped_defs = False
[mypy-galaxy.tools.cache]