@@ -131,8 +131,8 @@ def get_window_bounds(
131
131
if closed in ["left" , "neither" ]:
132
132
end -= 1
133
133
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 )
136
136
137
137
return start , end
138
138
@@ -402,7 +402,7 @@ def get_window_bounds(
402
402
start = np .arange (0 , num_values , step , dtype = "int64" )
403
403
end = start + self .window_size
404
404
if self .window_size :
405
- end = np .clip (end , 0 , num_values ) # type: ignore[assignment]
405
+ end = np .clip (end , 0 , num_values )
406
406
407
407
return start , end
408
408
@@ -488,7 +488,7 @@ def get_window_bounds(
488
488
)
489
489
window_indices_start += len (indices )
490
490
# 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 (
492
492
np .int64 , copy = False
493
493
)
494
494
start_arrays .append (window_indices .take (ensure_platform_int (start )))
0 commit comments