Skip to content

Commit

Permalink
Use pre-3.10 union syntax (#5060)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
adamnovak and github-actions[bot] committed Aug 16, 2024
1 parent 5b1dbdb commit 5a8090e
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 5a8090e

Please sign in to comment.