From 67717cc3e8df445e946307fd2937a666d395b6b3 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Thu, 11 Nov 2021 17:13:45 +0100 Subject: [PATCH] remove Union with only one member --- lib/galaxy/workflow/modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/workflow/modules.py b/lib/galaxy/workflow/modules.py index d00780a2e82..c6ce74207a9 100644 --- a/lib/galaxy/workflow/modules.py +++ b/lib/galaxy/workflow/modules.py @@ -932,8 +932,8 @@ class InputParameterModule(WorkflowModule): optional_cond.cases = optional_cases if param_type == "text": - restrict_how_source: Union[ - Dict[str, Union[str, List[Dict[str, Union[str, bool]]]]] + restrict_how_source: Dict[ + str, Union[str, List[Dict[str, Union[str, bool]]]] ] = dict(name="how", label="Restrict Text Values?", type="select") if parameter_def.get("restrictions") is not None: restrict_how_value = "staticRestrictions"