Skip to content

Commit f9ed95b

Browse files
committed
Mosaic: Annotate settings
1 parent 9940129 commit f9ed95b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Orange/widgets/visualize/owmosaic.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from itertools import product, chain, repeat
44
from math import sqrt, log
55
from operator import mul, attrgetter
6+
from typing import Set
67

78
import numpy as np
89
from scipy.stats import distributions
@@ -12,7 +13,7 @@
1213
from AnyQt.QtWidgets import (
1314
QGraphicsScene, QGraphicsLineItem, QGraphicsItemGroup)
1415

15-
from Orange.data import Table, filter, Variable, Domain
16+
from Orange.data import Table, filter, Variable, Domain, DiscreteVariable
1617
from Orange.data.sql.table import SqlTable, LARGE_TABLE, DEFAULT_SAMPLE_TIME
1718
from Orange.preprocess import Discretize
1819
from Orange.preprocess.discretize import EqualFreq
@@ -286,12 +287,12 @@ class Outputs:
286287
vizrank = SettingProvider(MosaicVizRank)
287288
settings_version = 2
288289
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)
295296

296297
BAR_WIDTH = 5
297298
SPACING = 4

0 commit comments

Comments
 (0)