mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
improve typing of lib/galaxy/workflow/run_request.py
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user