Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Jun 20, 2019
1 parent 77670e9 commit cd87072
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WDL/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ def map(self, items, meta) -> E.Base:

def object_kv(self, items, meta):
assert len(items) == 2
k = items[0].value
k = items[0]
if isinstance(k, lark.Token):
k = k.value
assert isinstance(k, str), k
assert isinstance(items[1], E.Base)
return (k, items[1])
Expand Down

0 comments on commit cd87072

Please sign in to comment.