pyannote-core icon indicating copy to clipboard operation
pyannote-core copied to clipboard

fix: update `itertracks` type annotation with overloads

Open willfrey opened this issue 3 months ago • 0 comments

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]].

willfrey avatar Sep 26 '25 15:09 willfrey