Skip to content

Commit c35a82f

Browse files
authored
Undo removed @Overloads from merge
Originally these were not overloads, but now they are.
1 parent 193bda6 commit c35a82f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stubs/sklearn/metrics/_regression.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def mean_squared_error(
107107
@deprecated(
108108
"`squared` is deprecated in 1.4 and will be removed in 1.6. Use `root_mean_squared_error` instead to calculate the root mean squared error."
109109
)
110+
@overload
110111
def mean_squared_error(
111112
y_true: MatrixLike | ArrayLike,
112113
y_pred: MatrixLike | ArrayLike,
@@ -146,6 +147,7 @@ def mean_squared_log_error(
146147
@deprecated(
147148
"`squared` is deprecated in 1.4 and will be removed in 1.6. Use `root_mean_squared_log_error` instead to calculate the root mean squared logarithmic error."
148149
)
150+
@overload
149151
def mean_squared_log_error(
150152
y_true: MatrixLike | ArrayLike,
151153
y_pred: MatrixLike | ArrayLike,

0 commit comments

Comments
 (0)