File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fate-suite:
2828 rsync -vrltLW rsync://fate-suite.ffmpeg.org/fate-suite/ tests/assets/fate-suite/
2929
3030lint :
31- $(PIP ) install -U ruff isort pillow numpy mypy==1.16 .1 pytest
31+ $(PIP ) install -U ruff isort pillow numpy mypy==1.17 .1 pytest
3232 ruff format --check av examples tests setup.py
3333 isort --check-only --diff av examples tests
3434 mypy av tests
Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ class Container:
8686 open_timeout : Real | None
8787 read_timeout : Real | None
8888 flags : int
89-
9089 def __enter__ (self ) -> Container : ...
9190 def __exit__ (
9291 self ,
@@ -96,6 +95,17 @@ class Container:
9695 ) -> bool : ...
9796 def set_timeout (self , timeout : Real | None ) -> None : ...
9897 def start_timeout (self ) -> None : ...
98+ def chapters (
99+ self ,
100+ ) -> list [
101+ {
102+ "id" : int ,
103+ "start" : int ,
104+ "end" : int ,
105+ "time_base" : Fraction ,
106+ "metadata" : dict [str , str ],
107+ }
108+ ]: ...
99109
100110@overload
101111def open (
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ class InputContainer(Container):
3636 def decode (
3737 self , * args : Any , ** kwargs : Any
3838 ) -> Iterator [VideoFrame | AudioFrame | SubtitleSet ]: ...
39- def chapters (self ): ...
4039 def seek (
4140 self ,
4241 offset : int ,
You can’t perform that action at this time.
0 commit comments