Skip to content

Commit de24bc7

Browse files
authored
fix: fix return type of Timeline.__iter__ (#94)
1 parent 13a43c2 commit de24bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyannote/core/timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __bool__(self):
182182
"""
183183
return len(self.segments_set_) > 0
184184

185-
def __iter__(self) -> Iterable[Segment]:
185+
def __iter__(self) -> Iterator[Segment]:
186186
"""Iterate over segments (in chronological order)
187187
188188
>>> for segment in timeline:

0 commit comments

Comments
 (0)