From 3fd85f42a5f4403560c6bf8a14f479f3ba5f9780 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Thu, 15 Aug 2024 10:36:20 -0400 Subject: [PATCH] Use pre-3.10 union syntax --- src/toil/wdl/wdltoil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toil/wdl/wdltoil.py b/src/toil/wdl/wdltoil.py index 72a8a3724a..2c7e155b23 100755 --- a/src/toil/wdl/wdltoil.py +++ b/src/toil/wdl/wdltoil.py @@ -3558,7 +3558,7 @@ def main() -> None: # have to cast from more specific to less specific ones here. # The miniwld values_from_json function can evaluate # expressions in the inputs or something. - WDLTypeDeclBindings = WDL.Env.Bindings[WDL.Tree.Decl] | WDL.Env.Bindings[WDL.Type.Base] + WDLTypeDeclBindings = Union[WDL.Env.Bindings[WDL.Tree.Decl], WDL.Env.Bindings[WDL.Type.Base]] input_bindings = WDL.values_from_json( inputs, cast(WDLTypeDeclBindings, target.available_inputs),