77 "_clone_estimator" ,
88]
99
10- from typing import Tuple , Union
10+ from typing import List , Tuple , Union
1111
1212import numpy as np
1313from numpy .random import RandomState
@@ -30,9 +30,9 @@ def _validate_data(
3030 ** check_params ,
3131 ) -> Union [
3232 Tuple [np .ndarray , object ],
33- Tuple [list [np .ndarray ], object ],
33+ Tuple [List [np .ndarray ], object ],
3434 np .ndarray ,
35- list [np .ndarray ],
35+ List [np .ndarray ],
3636 ]:
3737 """Validate input data and set or check the `n_features_in_` attribute.
3838
@@ -109,7 +109,7 @@ def _validate_data(
109109
110110 return out
111111
112- def _check_n_features (self , X : Union [np .ndarray , list [np .ndarray ]], reset : bool ):
112+ def _check_n_features (self , X : Union [np .ndarray , List [np .ndarray ]], reset : bool ):
113113 """Set the `n_features_in_` attribute, or check against it.
114114
115115 Uses the `scikit-learn` 1.2.1 `_check_n_features` function as a base.
@@ -172,7 +172,7 @@ def _more_tags(self) -> dict:
172172 @classmethod
173173 def get_test_params (
174174 cls , parameter_set : Union [str , None ] = None
175- ) -> Union [dict , list [dict ]]:
175+ ) -> Union [dict , List [dict ]]:
176176 """Return unit test parameter settings for the estimator.
177177
178178 Parameters
0 commit comments