Skip to content

stream: add session typing information #4814

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

Conversation

bastimeyer
Copy link
Member

  • Add typing information to Stream
  • Explicitly set the stream, reader, worker and writer types
  • Fix minor typing issues

Follow-up of #4802, which was a requirement for being able to add session typing information to the stream classes.

Some typing definitions are redundant, but since some are not, I chose setting all of them explicitly, to make it more consistent.

The stream classes which I didn't touch are either untyped or don't require any changes. And the other changes are minor typing fixes, removals of redundant stuff (duplicate self.stream = self.reader.stream) and updates of legacy py2 code (super() calls).

- Add typing information to `Stream`
- Explicitly set the stream, reader, worker and writer types
- Fix minor typing issues
@gravyboat gravyboat merged commit 165b488 into streamlink:master Sep 10, 2022
@bastimeyer bastimeyer deleted the stream/session-typing-information branch September 10, 2022 09:49
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.

2 participants