Skip to content

Commit f69760e

Browse files
committed
mypy
1 parent ec6bae9 commit f69760e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/torchcodec/decoders/_video_decoder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def __init__(
112112
decoder=self._decoder, stream_index=stream_index, media_type="video"
113113
)
114114

115+
assert isinstance(self.metadata, core.VideoStreamMetadata) # mypy
116+
115117
if self.metadata.num_frames is None:
116118
raise ValueError(
117119
"The number of frames is unknown. " + ERROR_REPORTING_INSTRUCTIONS

0 commit comments

Comments
 (0)