@@ -156,17 +156,17 @@ def frames(
156156 self ,
157157 * ,
158158 start : int = 0 ,
159- end : int | None = None ,
159+ end : int = None ,
160160 stride : int = 1 ,
161- resolution_wh : tuple [int , int ] | None = None ,
161+ resolution_wh : tuple [int , int ] = None ,
162162 ):
163163 """Generate frames from the video source.
164164
165165 Args:
166166 start (int, optional): Starting frame index. Defaults to 0.
167- end (int | None , optional): Ending frame index. Defaults to None.
167+ end (int, optional): Ending frame index. Defaults to None.
168168 stride (int, optional): Number of frames to skip. Defaults to 1.
169- resolution_wh (tuple[int, int] | None , optional): Target resolution
169+ resolution_wh (tuple[int, int], optional): Target resolution
170170 (width, height). If provided, frames will be resized. Defaults to None.
171171
172172 Yields:
@@ -209,7 +209,7 @@ def save(
209209 self ,
210210 target_path : str ,
211211 callback : Callable [[np .ndarray , int ], np .ndarray ],
212- fps : int | None = None ,
212+ fps : int = None ,
213213 progress_message : str = "Processing video" ,
214214 show_progress : bool = False ,
215215 codec : str = "mp4v" ,
@@ -220,7 +220,7 @@ def save(
220220 target_path (str): Path where the processed video will be saved.
221221 callback (Callable[[np.ndarray, int], np.ndarray]): Function that processes
222222 each frame. Takes frame and index as input, returns processed frame.
223- fps (int | None , optional): Output video FPS. If None, uses source FPS.
223+ fps (int, optional): Output video FPS. If None, uses source FPS.
224224 progress_message (str, optional): Message to show in progress bar.
225225 show_progress (bool, optional): Whether to show progress bar.
226226
0 commit comments