Skip to content

Commit

Permalink
fix: error import
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfzc committed Sep 26, 2019
1 parent 738dc00 commit 665f2ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stagesepx/cutter/cut_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_frames(
out.append(frame)
return out

def pick_and_get(self, *args, **kwargs) -> typing.List[toolbox.VideoFrame]:
def pick_and_get(self, *args, **kwargs) -> typing.List[VideoFrame]:
picked = self.pick(*args, **kwargs)
return self.get_frames(picked, *args, **kwargs)

Expand Down
6 changes: 3 additions & 3 deletions stagesepx/cutter/cut_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from loguru import logger

from stagesepx import toolbox
from stagesepx.video import VideoObject
from stagesepx.video import VideoObject, VideoFrame
from stagesepx.cutter.cut_range import VideoCutRange


Expand Down Expand Up @@ -355,8 +355,8 @@ def pick_and_save(
@staticmethod
def _prune(
threshold: float,
stages: typing.List[typing.Tuple[str, typing.List[toolbox.VideoFrame]]],
) -> typing.List[typing.Tuple[str, typing.List[toolbox.VideoFrame]]]:
stages: typing.List[typing.Tuple[str, typing.List[VideoFrame]]],
) -> typing.List[typing.Tuple[str, typing.List[VideoFrame]]]:
logger.debug(
f"start pruning ranges, origin length is {len(stages)}, threshold is {threshold}"
)
Expand Down

0 comments on commit 665f2ca

Please sign in to comment.