From 8bf6e4d87e722020381c2377ee319e46e4ca49d9 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 10 Feb 2024 12:47:14 +0000 Subject: [PATCH] Improve typing of Chapters constructor --- devine/core/tracks/chapters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/tracks/chapters.py b/devine/core/tracks/chapters.py index 5a2aeb0..580786a 100644 --- a/devine/core/tracks/chapters.py +++ b/devine/core/tracks/chapters.py @@ -15,7 +15,7 @@ OGM_SIMPLE_LINE_2_FORMAT = re.compile(r"^CHAPTER(?P\d+)NAME=(?P.*) class Chapters(SortedKeyList, ABC): - def __init__(self, iterable: Optional[Iterable] = None): + def __init__(self, iterable: Optional[Iterable[Chapter]] = None): super().__init__(key=lambda x: x.timestamp or 0) for chapter in iterable or []: self.add(chapter)