Skip to content

Commit

Permalink
The Python 3.8 annotation needs a lot of hand-holding, it seems
Browse files Browse the repository at this point in the history
  • Loading branch information
MattUnderscoreZhang committed Jan 19, 2024
1 parent 077ca27 commit b202296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video2dataset/subsamplers/clipping_subsampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _get_clips(
ffmpeg_kwargs["c"] = "copy"

clips: Dict[str, List[bytes]] = {}
for k in Streams.__annotations__.keys():
for k in ["video", "audio"]:
if k not in streams:
continue
with tempfile.TemporaryDirectory() as tmpdir:
Expand Down

0 comments on commit b202296

Please sign in to comment.