Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stream.segmented: fix and add more typing#5507

Merged
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:stream/generic-segmented
Aug 20, 2023
Merged

stream.segmented: fix and add more typing#5507
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:stream/generic-segmented

Conversation

@bastimeyer

@bastimeyer bastimeyer commented Aug 19, 2023

Copy link
Copy Markdown
Member
  • 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
Copy Markdown
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