Skip to content

Commit 86625cf

Browse files
charlesvestalclaude
andcommitted
fix(scene_manager): narrow expand_scenes_to_bounds params to FrameTimecode
The function builds a SceneList (list[tuple[FrameTimecode, FrameTimecode]]), so accepting int violated the tuple element type at assignment. All callers pass FrameTimecode. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b677cd0 commit 86625cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scenedetect/scene_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def compute_downscale_factor(frame_width: int, effective_width: int = DEFAULT_MI
142142

143143
def expand_scenes_to_bounds(
144144
scenes: SceneList,
145-
start: int | FrameTimecode,
146-
end: int | FrameTimecode,
145+
start: FrameTimecode,
146+
end: FrameTimecode,
147147
) -> SceneList:
148148
"""Return a new scene list whose first scene starts at `start` and last scene ends at `end`.
149149

0 commit comments

Comments
 (0)