Skip to content

Commit ce4a45b

Browse files
committed
Correlations: Annotate settings
1 parent 18b8401 commit ce4a45b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Orange/widgets/data/owcorrelations.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from operator import attrgetter
66
from types import SimpleNamespace
77
from itertools import combinations, groupby, chain
8+
from typing import List
89

910
import numpy as np
1011
from scipy.stats import spearmanr, pearsonr
@@ -253,8 +254,8 @@ class Outputs:
253254

254255
settings_version = 3
255256
settingsHandler = DomainContextHandler()
256-
selection = ContextSetting([])
257-
feature = ContextSetting(None)
257+
selection: List[ContinuousVariable] = ContextSetting([])
258+
feature: ContinuousVariable = ContextSetting(None)
258259
correlation_type = Setting(0)
259260

260261
class Information(OWWidget.Information):
@@ -431,10 +432,6 @@ def migrate_context(cls, context, version):
431432
sel = context.values["selection"]
432433
context.values["selection"] = [(var.name, vartype(var))
433434
for var in sel[0]]
434-
if version < 3:
435-
sel = context.values["selection"]
436-
context.values["selection"] = ([(name, vtype + 100)
437-
for name, vtype in sel], -3)
438435

439436

440437
if __name__ == "__main__": # pragma: no cover

0 commit comments

Comments
 (0)