Skip to content

Commit 273de56

Browse files
committed
Add type hint
1 parent 5f181fd commit 273de56

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fate-suite:
2828
rsync -vrltLW rsync://fate-suite.ffmpeg.org/fate-suite/ tests/assets/fate-suite/
2929

3030
lint:
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

av/container/core.pyi

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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
101111
def open(

av/container/input.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)