remove Union with only one member

This commit is contained in:
Michael R. Crusoe
2021-11-15 11:37:15 +01:00
committed by mvdbeek
parent ee6b5aa1d8
commit 67717cc3e8
+2 -2
View File
@@ -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"