Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Jun 17, 2024
1 parent c3ec590 commit 121a2ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WDL/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import threading
import regex
import codecs
from typing import List, Optional, Set, Tuple, Any
from typing import List, Optional, Set, Tuple, Any, Union
import lark
from .Error import SourcePosition
from . import Error, Tree, Type, Expr, _grammar
Expand Down Expand Up @@ -111,7 +111,7 @@ def float(self, meta, items) -> Expr.Base:
return Expr.Float(self._sp(meta), to_float(items[0]))

def string(self, meta, items) -> Expr.Base:
parts: List[str | Expr.Placeholder] = []
parts: List[Union[str,Expr.Placeholder]] = []
for item in items:
if isinstance(item, Expr.Placeholder):
parts.append(item)
Expand Down

0 comments on commit 121a2ad

Please sign in to comment.