Skip to content

stream.segmented: fix and add more typing #5507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2023

Conversation

bastimeyer
Copy link
Member

@bastimeyer bastimeyer commented Aug 19, 2023

  • Turn SegmentedStream{Writer,Worker,Reader} into generic classes with segment and segment-result types
  • Fix typing information of the writer's queue
  • Add missing typing information
  • Update segmented stream classes accordingly

#5498

Next step will be fixing the whole Segment mess by adding a common BaseSegment. This will require more changes due to how the current segments are implemented and structured.

@bastimeyer
Copy link
Member Author

Will fix the py38 errors tomorrow...

- Turn `SegmentedStream{Writer,Worker,Reader}` into generic classes
  with `TSegment` and `TResult` types
- Fix typing information of the writer's queue
- Add missing typing information
- Update segmented stream implementations/subclasses accordingly
@bastimeyer bastimeyer force-pushed the stream/generic-segmented branch from 5652409 to bb83f4c Compare August 20, 2023 11:08
@bastimeyer bastimeyer merged commit 54136f4 into streamlink:master Aug 20, 2023
@bastimeyer bastimeyer deleted the stream/generic-segmented branch August 20, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant