From f81a75a8459c4b3ba32600808fbc1c41e613d9a0 Mon Sep 17 00:00:00 2001 From: Simon Ottenhaus <69142583+simonottenhauskenbun@users.noreply.github.com> Date: Wed, 17 Apr 2024 08:27:33 +0200 Subject: [PATCH] Fix infinite recursion Co-authored-by: Evan Finken --- pyannote/core/annotation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyannote/core/annotation.py b/pyannote/core/annotation.py index 5176cfb..7a9c382 100755 --- a/pyannote/core/annotation.py +++ b/pyannote/core/annotation.py @@ -307,7 +307,7 @@ def itertracks( def itertracks_with_labels(self) -> Iterator[SegmentTrackLabel]: """Typed version of :func:`itertracks`(yield_label=True)""" - return self.itertracks_with_labels() # type: ignore + return self.itertracks(yield_label=True) # type: ignore def itertracks_without_labels(self) -> Iterator[SegmentTrack]: """Typed version of :func:`itertracks`(yield_label=False)"""