@@ -50,7 +50,7 @@ def __init__(
5050 self .undefined_value = undefined_value
5151 self .mask_feature = (FeatureType .MASK , mask_name )
5252
53- def _apply_dilation (self , snow_masks ) :
53+ def _apply_dilation (self , snow_masks : np . ndarray ) -> np . ndarray :
5454 """Apply binary dilation for each mask in the series"""
5555 if self .dilation_size :
5656 snow_masks = np .array ([binary_dilation (mask , disk (self .dilation_size )) for mask in snow_masks ])
@@ -148,7 +148,7 @@ def __init__(
148148 red_params : Tuple [float , float , float , float , float ] = (12 , 0.3 , 0.1 , 0.2 , 0.040 ),
149149 ndsi_params : Tuple [float , float , float ] = (0.4 , 0.15 , 0.001 ),
150150 b10_index : Optional [int ] = None ,
151- ** kwargs ,
151+ ** kwargs : Any ,
152152 ):
153153 """
154154 :param data_feature: EOPatch feature represented by a tuple in the form of `(FeatureType, 'feature_name')`
@@ -187,7 +187,7 @@ def __init__(
187187 self .b10_index = b10_index
188188 self ._validate_params ()
189189
190- def _validate_params (self ):
190+ def _validate_params (self ) -> None :
191191 """Check length of parameters defining threshold values"""
192192 for params , n_params in [(self .dem_params , 2 ), (self .red_params , 5 ), (self .ndsi_params , 3 )]:
193193 if not isinstance (params , (tuple , list )) or len (params ) != n_params :
@@ -229,7 +229,7 @@ def _adjust_cloud_mask(
229229 ).astype (np .uint8 )
230230
231231 def _apply_first_pass (
232- self , bands : np .ndarray , ndsi : np .ndarray , clm : np .ndarray , dem , clm_temp : np .ndarray
232+ self , bands : np .ndarray , ndsi : np .ndarray , clm : np .ndarray , dem : np . ndarray , clm_temp : np .ndarray
233233 ) -> Tuple [np .ndarray , Optional [np .ndarray ], np .ndarray ]:
234234 """Apply first pass of snow detection"""
235235 snow_mask_pass1 = np .where (
0 commit comments