Skip to content

Commit

Permalink
Merge pull request #1063 from jakevdp/fix-api
Browse files Browse the repository at this point in the history
DOC: use autosummary to clean up API docs
  • Loading branch information
jakevdp authored Aug 2, 2018
2 parents 98a4ee7 + 857a893 commit e744f1b
Show file tree
Hide file tree
Showing 15 changed files with 3,162 additions and 2,867 deletions.
2 changes: 1 addition & 1 deletion altair/sphinxext/schematable.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def type_description(schema):
"""Return a concise type description for the given schema"""
if schema == {}:
if not schema or schema.keys() == {'description'}:
return 'any'
elif "$ref" in schema:
return ":class:`{0}`".format(schema['$ref'].split('/')[-1])
Expand Down
Loading

0 comments on commit e744f1b

Please sign in to comment.