Skip to content

Commit

Permalink
Use pre-3.10 union syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnovak committed Aug 15, 2024
1 parent b5fd307 commit 3fd85f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toil/wdl/wdltoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3fd85f4

Please sign in to comment.