Skip to content

Commit

Permalink
Explicitly don’t document the base Widget class.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Mar 23, 2018
1 parent af88fbf commit 96514d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schema/generate-spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def typing(x):
elif isinstance(x, Instance) and issubclass(x.klass, widgets.Widget):
s = 'reference to %s widget'%(x.klass.__name__)
# ADD the widget to this documenting list
if x.klass not in [i[1] for i in widgets_to_document]:
if x.klass not in [i[1] for i in widgets_to_document] and x.klass != widgets.Widget:
widgets_to_document.append((x.klass.__name__, x.klass))
elif isinstance(x, Any):
# In our case, these all happen to be values that are converted to strings
Expand Down

0 comments on commit 96514d5

Please sign in to comment.