Skip to content

Commit

Permalink
OWProjectionWidgetBase: Annotate types
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed May 2, 2020
1 parent 5dd4b44 commit af8cbc4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Orange/widgets/visualize/utils/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class OWProjectionWidgetBase(OWWidget, openclass=True):
and a bool `np.ndarray` with indicators of valid (that is, shown)
data points.
"""
attr_color = ContextSetting(None, required=ContextSetting.OPTIONAL)
attr_label = ContextSetting(None, required=ContextSetting.OPTIONAL)
attr_shape = ContextSetting(None, required=ContextSetting.OPTIONAL)
attr_size = ContextSetting(None, required=ContextSetting.OPTIONAL)
attr_color: Variable = ContextSetting(None, required=ContextSetting.OPTIONAL)
attr_label: Variable = ContextSetting(None, required=ContextSetting.OPTIONAL)
attr_shape: Variable = ContextSetting(None, required=ContextSetting.OPTIONAL)
attr_size: Variable = ContextSetting(None, required=ContextSetting.OPTIONAL)

class Information(OWWidget.Information):
missing_size = Msg(
Expand Down Expand Up @@ -378,7 +378,7 @@ class Warning(OWProjectionWidgetBase.Warning):
"No subset data instances appear in input data")

settingsHandler = DomainContextHandler()
selection = Setting(None, schema_only=True)
selection: list = Setting(None, schema_only=True)
auto_commit = Setting(True)

GRAPH_CLASS = OWScatterPlotBase
Expand Down

0 comments on commit af8cbc4

Please sign in to comment.