|
3 | 3 | from itertools import product, chain, repeat
|
4 | 4 | from math import sqrt, log
|
5 | 5 | from operator import mul, attrgetter
|
| 6 | +from typing import Set |
6 | 7 |
|
7 | 8 | import numpy as np
|
8 | 9 | from scipy.stats import distributions
|
|
12 | 13 | from AnyQt.QtWidgets import (
|
13 | 14 | QGraphicsScene, QGraphicsLineItem, QGraphicsItemGroup)
|
14 | 15 |
|
15 |
| -from Orange.data import Table, filter, Variable, Domain |
| 16 | +from Orange.data import Table, filter, Variable, Domain, DiscreteVariable |
16 | 17 | from Orange.data.sql.table import SqlTable, LARGE_TABLE, DEFAULT_SAMPLE_TIME
|
17 | 18 | from Orange.preprocess import Discretize
|
18 | 19 | from Orange.preprocess.discretize import EqualFreq
|
@@ -286,12 +287,12 @@ class Outputs:
|
286 | 287 | vizrank = SettingProvider(MosaicVizRank)
|
287 | 288 | settings_version = 2
|
288 | 289 | use_boxes = Setting(True)
|
289 |
| - variable1 = ContextSetting(None) |
290 |
| - variable2 = ContextSetting(None) |
291 |
| - variable3 = ContextSetting(None) |
292 |
| - variable4 = ContextSetting(None) |
293 |
| - variable_color = ContextSetting(None) |
294 |
| - selection = Setting(set(), schema_only=True) |
| 290 | + variable1: Variable = ContextSetting(None) |
| 291 | + variable2: Variable = ContextSetting(None) |
| 292 | + variable3: Variable = ContextSetting(None) |
| 293 | + variable4: Variable = ContextSetting(None) |
| 294 | + variable_color: DiscreteVariable = ContextSetting(None) |
| 295 | + selection: Set[str] = Setting(set(), schema_only=True) |
295 | 296 |
|
296 | 297 | BAR_WIDTH = 5
|
297 | 298 | SPACING = 4
|
|
0 commit comments