Closed issacdowling closed 1 month ago
If it's a larger issue that this would break existing callbacks using the list of Segments, the type hint could just be switched to match, but providing one Segment rather than one Segment in a list seems better
In my editor, it's shown that
new_segment_callback
is to be provided aSegment
, but it actually provides a list[Segment] with one element. I've changed this by just returning that first element so that it matches the type hints.