Skip to content

Commit e8b3194

Browse files
committed
Missed some overloads
1 parent 2b0d617 commit e8b3194

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

stubs/sklearn/preprocessing/_data.pyi

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,9 @@ class StandardScaler(OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
113113
@overload
114114
def transform(self, X: ArrayLike, copy: None | bool = None) -> ndarray: ...
115115
@overload
116-
def transform(self, X: MatrixLike, copy: None | bool = None) -> ndarray | spmatrix: ...
117-
@overload
118116
def inverse_transform(self, X: spmatrix, copy: None | bool = None) -> spmatrix: ...
119117
@overload
120118
def inverse_transform(self, X: ArrayLike, copy: None | bool = None) -> ndarray: ...
121-
@overload
122-
def inverse_transform(self, X: MatrixLike | ArrayLike, copy: None | bool = None) -> ndarray | spmatrix: ...
123119

124120
class MaxAbsScaler(OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
125121
n_samples_seen_: int = ...
@@ -242,8 +238,6 @@ class Normalizer(OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
242238
def transform(self, X: spmatrix, copy: None | bool = None) -> spmatrix: ...
243239
@overload
244240
def transform(self, X: ArrayLike, copy: None | bool = None) -> ndarray: ...
245-
@overload
246-
def transform(self, X: MatrixLike | ArrayLike, copy: None | bool = None) -> ndarray | spmatrix: ...
247241

248242
def binarize(X: MatrixLike | ArrayLike, *, threshold: Float = 0.0, copy: bool = True) -> ndarray | spmatrix: ...
249243

@@ -259,8 +253,6 @@ class Binarizer(OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
259253
def transform(self, X: spmatrix, copy: None | bool = None) -> spmatrix: ...
260254
@overload
261255
def transform(self, X: ArrayLike, copy: None | bool = None) -> ndarray: ...
262-
@overload
263-
def transform(self, X: MatrixLike | ArrayLike, copy: None | bool = None) -> ndarray | spmatrix: ...
264256

265257
class KernelCenterer(ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstimator):
266258
feature_names_in_: ndarray = ...

0 commit comments

Comments
 (0)