Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Nov 19, 2021
1 parent e5fac00 commit 098e86c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions WDL/Value.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,7 @@ def coerce(self, desired_type: Optional[Type.Base] = None) -> Base:
# Runtime typecheck for initializing struct from read_{object,objects,map}
# This couldn't have been checked statically because the map keys weren't known.
litty = Type.Map(
self.type.item_type,
self.type.optional,
set(kv[0].value for kv in self.value),
self.type.item_type, self.type.optional, set(kv[0].value for kv in self.value)
)
if not litty.coerces(desired_type):
msg = (
Expand Down

0 comments on commit 098e86c

Please sign in to comment.