Closed janezd closed 1 year ago
@PrimozGodec, can you test this, and merge if it works?
Patch coverage has no change and project coverage change: -0.02%
:warning:
Comparison is base (
e85b33f
) 75.48% compared to head (3b84ad9
) 75.47%. Report is 2 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Yep, it solves the problem. Thank you @janezd and @ales-erjavec
As proposed by @ales-erjavec, this fixes https://github.com/biolab/orange3/issues/6583.
Lazy signals are evaluating before checking their types. If the signal is of the correct type, it would eventually be evaluated anyway, so we don't lose anything.
If lazy signals had type hints, we could check the type before evaluation and save some memory when signals don't match. But this is an error condition and I won't lose sleep over it. Also, type hints would in most cases need to be added "manually" as an additional argument to
LazyValue
. In most widgets we would forger to do it, so signal manager would have to fall back to evaluation anyway.