From 2bbe033efb8a9ff143a6ffdedcd38dff0be0cd13 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 8 Mar 2024 15:20:40 +0000 Subject: [PATCH] fix(Tracks): Improve constructor typing, add Chapter(s) to typing --- devine/core/tracks/tracks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/tracks/tracks.py b/devine/core/tracks/tracks.py index 6a487af..e099dbb 100644 --- a/devine/core/tracks/tracks.py +++ b/devine/core/tracks/tracks.py @@ -36,7 +36,7 @@ class Tracks: 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.audio: list[Audio] = [] self.subtitles: list[Subtitle] = []