fix(Tracks): Improve constructor typing, add Chapter(s) to typing

This commit is contained in:
rlaphoenix 2024-03-08 15:20:40 +00:00
parent 5950a4d4fa
commit 2bbe033efb
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Tracks:
Chapter: 3 Chapter: 3
} }
def __init__(self, *args: Union[Tracks, list[Track], Track]): def __init__(self, *args: Union[Tracks, Sequence[Union[AnyTrack, Chapter, Chapters]], Track, Chapter, Chapters]):
self.videos: list[Video] = [] self.videos: list[Video] = []
self.audio: list[Audio] = [] self.audio: list[Audio] = []
self.subtitles: list[Subtitle] = [] self.subtitles: list[Subtitle] = []