Skip to content

Commit bcf283e

Browse files
committed
FIX: change warn place in file
1 parent 79ba0f8 commit bcf283e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
from .regression import BaseRegressionScore as ConformityScore # noqa: F401
2-
31
import warnings
42
warnings.warn(
53
"Conformity score class is depreciated. Prefer import " +
64
"BaseRegressionScore from mapie.conformity_scores",
75
DeprecationWarning
86
)
7+
8+
from .regression import ( # noqa: F401, E402
9+
BaseRegressionScore as ConformityScore
10+
)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from .bounds import ( # noqa: F401
2-
AbsoluteConformityScore, GammaConformityScore, ResidualNormalisedScore
3-
)
4-
51
import warnings
62
warnings.warn(
73
"Imports from mapie.conformity_scores.residual_conformity_scores " +
84
"are deprecated. Please use from mapie.conformity_scores",
95
DeprecationWarning
106
)
7+
8+
from .bounds import ( # noqa: F401, E402
9+
AbsoluteConformityScore, GammaConformityScore, ResidualNormalisedScore
10+
)

0 commit comments

Comments
 (0)