@@ -131,8 +131,8 @@ def get_window_bounds(
131131 if closed in ["left" , "neither" ]:
132132 end -= 1
133133
134- end = np .clip (end , 0 , num_values ) # type: ignore[assignment]
135- start = np .clip (start , 0 , num_values ) # type: ignore[assignment]
134+ end = np .clip (end , 0 , num_values )
135+ start = np .clip (start , 0 , num_values )
136136
137137 return start , end
138138
@@ -402,7 +402,7 @@ def get_window_bounds(
402402 start = np .arange (0 , num_values , step , dtype = "int64" )
403403 end = start + self .window_size
404404 if self .window_size :
405- end = np .clip (end , 0 , num_values ) # type: ignore[assignment]
405+ end = np .clip (end , 0 , num_values )
406406
407407 return start , end
408408
@@ -488,7 +488,7 @@ def get_window_bounds(
488488 )
489489 window_indices_start += len (indices )
490490 # Extend as we'll be slicing window like [start, end)
491- window_indices = np .append (window_indices , [window_indices [- 1 ] + 1 ]).astype ( # type: ignore[assignment]
491+ window_indices = np .append (window_indices , [window_indices [- 1 ] + 1 ]).astype (
492492 np .int64 , copy = False
493493 )
494494 start_arrays .append (window_indices .take (ensure_platform_int (start )))
0 commit comments