@@ -29,7 +29,7 @@ from ..utils.validation import check_is_fitted as check_is_fitted, indexable as
2929from . import BaseCrossValidator
3030from ._split import check_cv as check_cv
3131
32- BaseEstimatorT = TypeVar ("BaseEstimatorT " , bound = BaseEstimator , default = BaseEstimator , covariant = True )
32+ _BaseEstimatorT = TypeVar ("_BaseEstimatorT " , bound = BaseEstimator , default = BaseEstimator , covariant = True )
3333
3434__all__ = ["GridSearchCV" , "ParameterGrid" , "ParameterSampler" , "RandomizedSearchCV" ]
3535
@@ -84,7 +84,7 @@ class BaseSearchCV(MetaEstimatorMixin, BaseEstimator, metaclass=ABCMeta):
8484 ** fit_params ,
8585 ) -> Self : ...
8686
87- class GridSearchCV (BaseSearchCV , Generic [BaseEstimatorT ]):
87+ class GridSearchCV (BaseSearchCV , Generic [_BaseEstimatorT ]):
8888 feature_names_in_ : ndarray = ...
8989 n_features_in_ : int = ...
9090 classes_ : ndarray = ...
@@ -95,14 +95,14 @@ class GridSearchCV(BaseSearchCV, Generic[BaseEstimatorT]):
9595 best_index_ : int = ...
9696 best_params_ : dict = ...
9797 best_score_ : float = ...
98- best_estimator_ : BaseEstimatorT = ...
98+ best_estimator_ : _BaseEstimatorT = ...
9999 cv_results_ : dict [str , ndarray ] = ...
100100
101101 _required_parameters : ClassVar [list ] = ...
102102
103103 def __init__ (
104104 self ,
105- estimator : BaseEstimatorT ,
105+ estimator : _BaseEstimatorT ,
106106 param_grid : Mapping | Sequence [dict ],
107107 * ,
108108 scoring : ArrayLike | None | tuple | Callable | Mapping | str = None ,
0 commit comments