Skip to content

Commit d6ae316

Browse files
committed
Consolidate stream classes into single module
- Move AttachmentStream and DataStream from separate modules into av/stream.py - Convert stream.pyx from Cython to pure Python - Add missing 'options' property to Stream type hints This consolidation reduces code duplication and simplifies the module structure without changing the public API.
1 parent f964e7a commit d6ae316

14 files changed

Lines changed: 108 additions & 111 deletions

File tree

av/attachments/__init__.py

Whitespace-only changes.

av/attachments/stream.pxd

Lines changed: 0 additions & 5 deletions
This file was deleted.

av/attachments/stream.pyi

Lines changed: 0 additions & 8 deletions
This file was deleted.

av/attachments/stream.pyx

Lines changed: 0 additions & 26 deletions
This file was deleted.

av/container/output.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ from typing import Sequence, TypeVar, Union, overload
33

44
from av.audio import _AudioCodecName
55
from av.audio.stream import AudioStream
6-
from av.data.stream import DataStream
76
from av.packet import Packet
7+
from av.stream import DataStream
88
from av.subtitles.stream import SubtitleStream
99
from av.video import _VideoCodecName
1010
from av.video.stream import VideoStream

av/container/streams.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from typing import Iterator, Literal, overload
22

3-
from av.attachments.stream import AttachmentStream
43
from av.audio.stream import AudioStream
5-
from av.data.stream import DataStream
6-
from av.stream import Stream
4+
from av.stream import AttachmentStream, DataStream, Stream
75
from av.subtitles.stream import SubtitleStream
86
from av.video.stream import VideoStream
97

av/data/__init__.pxd

Whitespace-only changes.

av/data/__init__.py

Whitespace-only changes.

av/data/stream.pxd

Lines changed: 0 additions & 5 deletions
This file was deleted.

av/data/stream.pyi

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)