Skip to content

Commit 3c06d1b

Browse files
committed
Restore Orange.canvas.report module stub
The stub module was removed in biolabgh-3772 without a corresponding 'FutureWarning' grace period.
1 parent eb734e9 commit 3c06d1b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Orange/canvas/report.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import sys
2+
import warnings
3+
import Orange.widgets.report
4+
5+
warnings.warn(
6+
f"'{__name__}' is deprecated and will be removed in the future.\n"
7+
"The contents of this package were moved to 'Orange.widgets.report'. "
8+
"Please update the imports accordingly.",
9+
FutureWarning, stacklevel=2
10+
)
11+
sys.modules[__name__] = Orange.widgets.report

0 commit comments

Comments
 (0)