mirror of https://github.com/devine-dl/devine.git
fix(Tracks): Improve constructor typing, add Chapter(s) to typing
This commit is contained in:
parent
5950a4d4fa
commit
2bbe033efb
|
@ -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] = []
|
||||
|
|
Loading…
Reference in New Issue