From 5c2c5d87c295339e1a2984bec155b0e260cc9f19 Mon Sep 17 00:00:00 2001 From: Lukas Storck Date: Tue, 14 May 2024 11:26:17 +0200 Subject: [PATCH] fix: fix type hint of Timeline.to_annotation --- pyannote/core/timeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyannote/core/timeline.py b/pyannote/core/timeline.py index 1af9151..4a2559a 100755 --- a/pyannote/core/timeline.py +++ b/pyannote/core/timeline.py @@ -1034,7 +1034,7 @@ def segmentation(self) -> 'Timeline': return Timeline(segments=segments, uri=self.uri) def to_annotation(self, - generator: Union[str, Iterable[Label], None, None] = 'string', + generator: Union[str, Iterable[Label]] = 'string', modality: Optional[str] = None) \ -> 'Annotation': """Turn timeline into an annotation