Skip to content

Commit 9126d3e

Browse files
committed
Merge branch 'release/5.0.1'
2 parents 4b0fd53 + 7b1c268 commit 9126d3e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

doc/source/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Changelog
33
#########
44

5+
Version 5.0.1 (2024-06-14)
6+
~~~~~~~~~~~~~~~~~~~~~~~~~~
7+
8+
- fix: fix return type of Timeline.__iter__ (@domsmrz)
9+
- improve: remove MatplotlibDeprecationWarning (@kimdwkimdw)
10+
511
Version 5.0.0 (2022-12-15)
612
~~~~~~~~~~~~~~~~~~~~~~~~~~
713

pyannote/core/notebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def __init__(self):
126126
self.reset()
127127

128128
def reset(self):
129-
from matplotlib.cm import get_cmap
129+
from matplotlib.pyplot import get_cmap
130130

131131
linewidth = [3, 1]
132132
linestyle = ["solid", "dashed", "dotted"]

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)