Skip to content

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