Skip to content

Conversation

willfrey
Copy link

@willfrey willfrey commented Sep 26, 2025

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

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[[Segment, TrackName, Label]]`.
@willfrey willfrey changed the title Fix itertracks type annotation with overloads fix: update itertracks type annotation with overloads Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant