Skip to content

Conversation

mhils
Copy link
Member

@mhils mhils commented Feb 7, 2025

This PR changes

    def process_input(self, input_: StreamInputs) -> Any:

to

    def process_input(self, input_: StreamInputs) -> list[Event]:

to make the state machine properly typed. This requires a bunch of casts in H2Stream, but this is good because it ensures we don't violate invariants in the future. It also fixes some inconsistencies (HeaderTuple -> Header) that were discovered in the process.

@mhils mhils merged commit 6901794 into python-hyper:master Feb 10, 2025
8 checks passed
@mhils mhils deleted the more-types branch February 10, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant