Skip to content

Commit

Permalink
Merge branch 'release/5.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin committed Jun 14, 2024
2 parents 4b0fd53 + 7b1c268 commit 9126d3e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog
#########

Version 5.0.1 (2024-06-14)
~~~~~~~~~~~~~~~~~~~~~~~~~~

- fix: fix return type of Timeline.__iter__ (@domsmrz)
- improve: remove MatplotlibDeprecationWarning (@kimdwkimdw)

Version 5.0.0 (2022-12-15)
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion pyannote/core/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(self):
self.reset()

def reset(self):
from matplotlib.cm import get_cmap
from matplotlib.pyplot import get_cmap

linewidth = [3, 1]
linestyle = ["solid", "dashed", "dotted"]
Expand Down
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 9126d3e

Please sign in to comment.