pyannote-core
pyannote-core copied to clipboard
fix: update `itertracks` type annotation with overloads
The return type was incorrectly annotated as a single Iterator with
a union of tuple shapes. It now uses @overload to reflect that
yield_label=False returns Iterator[tuple[Segment, TrackName]] while
yield_label=True returns Iterator[tuple[Segment, TrackName, Label]].