Skip to content

Commit af8cbc4

Browse files
committed
OWProjectionWidgetBase: Annotate types
1 parent 5dd4b44 commit af8cbc4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Orange/widgets/visualize/utils/widget.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ class OWProjectionWidgetBase(OWWidget, openclass=True):
5151
and a bool `np.ndarray` with indicators of valid (that is, shown)
5252
data points.
5353
"""
54-
attr_color = ContextSetting(None, required=ContextSetting.OPTIONAL)
55-
attr_label = ContextSetting(None, required=ContextSetting.OPTIONAL)
56-
attr_shape = ContextSetting(None, required=ContextSetting.OPTIONAL)
57-
attr_size = ContextSetting(None, required=ContextSetting.OPTIONAL)
54+
attr_color: Variable = ContextSetting(None, required=ContextSetting.OPTIONAL)
55+
attr_label: Variable = ContextSetting(None, required=ContextSetting.OPTIONAL)
56+
attr_shape: Variable = ContextSetting(None, required=ContextSetting.OPTIONAL)
57+
attr_size: Variable = ContextSetting(None, required=ContextSetting.OPTIONAL)
5858

5959
class Information(OWWidget.Information):
6060
missing_size = Msg(
@@ -378,7 +378,7 @@ class Warning(OWProjectionWidgetBase.Warning):
378378
"No subset data instances appear in input data")
379379

380380
settingsHandler = DomainContextHandler()
381-
selection = Setting(None, schema_only=True)
381+
selection: list = Setting(None, schema_only=True)
382382
auto_commit = Setting(True)
383383

384384
GRAPH_CLASS = OWScatterPlotBase

0 commit comments

Comments
 (0)