Skip to content

Commit

Permalink
fix: fix return type of Timeline.__iter__ (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
domsmrz authored Feb 12, 2024
1 parent 13a43c2 commit de24bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyannote/core/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __bool__(self):
"""
return len(self.segments_set_) > 0

def __iter__(self) -> Iterable[Segment]:
def __iter__(self) -> Iterator[Segment]:
"""Iterate over segments (in chronological order)
>>> for segment in timeline:
Expand Down

0 comments on commit de24bc7

Please sign in to comment.