Skip to content

Commit 668cc98

Browse files
committed
Fixed import
1 parent 90f4ffa commit 668cc98

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

av/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from av.codec.codec import Codec, codecs_available
1919
from av.codec.context import CodecContext
2020
from av.codec.hwaccel import HWConfig
21-
from av.container import open, Chapter
21+
from av.container import open
2222
from av.format import ContainerFormat, formats_available
2323
from av.packet import Packet
2424
from av.error import * # noqa: F403; This is limited to exception types.
@@ -41,7 +41,6 @@
4141
"AudioStream",
4242
"BitStreamFilterContext",
4343
"bitstream_filters_available",
44-
"Chapter",
4544
"Codec",
4645
"codecs_available",
4746
"CodecContext",

av/container/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from .core import Chapter, Container, Flags, open
1+
from .core import Container, Flags, open
22
from .input import InputContainer
33
from .output import OutputContainer

tests/test_chapters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from fractions import Fraction
22

33
import av
4-
from av import Chapter
54

65
from .common import fate_suite
76

@@ -43,7 +42,7 @@ def test_chapters() -> None:
4342

4443

4544
def test_set_chapters() -> None:
46-
chapters: list[Chapter] = [
45+
chapters: list[av.container.Chapter] = [
4746
{
4847
"id": 1,
4948
"start": 0,

0 commit comments

Comments
 (0)