Skip to content

Commit

Permalink
Update spec docs for typed tuples to include the element type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Mar 23, 2018
1 parent 20466b7 commit c9848a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/schema/generate-spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ def typing(x):
s = 'string (one of %s)'%(', '.join('`%r`'%i for i in x.values))
elif isinstance(x, Unicode):
s = 'string'
elif isinstance(x, (Tuple, TypedTuple, List)):
elif isinstance(x, (Tuple, List)):
s = 'array'
elif isinstance(x, TypedTuple):
s = 'array of ' + typing(x._trait)
elif isinstance(x, Bool):
s = 'boolean'
elif isinstance(x, (CFloat, Float)):
Expand Down

0 comments on commit c9848a4

Please sign in to comment.