Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Aug 11, 2019
1 parent ee85cbc commit 7039315
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WDL/Value.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def __init__(self, item_type: Type.Base, value: List[Base]) -> None:

@property
def json(self) -> Any:
""
return [item.json for item in self.value]

@property
Expand Down Expand Up @@ -174,6 +175,7 @@ def __init__(

@property
def json(self) -> Any:
""
ans = {}
for k, v in self.value:
assert isinstance(k, String) # TODO
Expand Down Expand Up @@ -224,6 +226,7 @@ def __str__(self) -> str:

@property
def json(self) -> Any:
""
return [self.value[0].json, self.value[1].json]

@property
Expand Down Expand Up @@ -265,6 +268,7 @@ def coerce(self, desired_type: Optional[Type.Base] = None) -> Base:

@property
def json(self) -> Any:
""
return None


Expand Down Expand Up @@ -296,6 +300,7 @@ def __str__(self) -> str:

@property
def json(self) -> Any:
""
ans = {}
for k, v in self.value.items():
ans[k] = v.json
Expand Down

0 comments on commit 7039315

Please sign in to comment.