Skip to content

Commit

Permalink
Update next_event annotation to reflect possible return types
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb authored and pgjones committed Aug 25, 2022
1 parent b0e889d commit 04cc0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h11/_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def _extract_next_receive_event(self) -> Union[Event, Type[Sentinel]]:
event = NEED_DATA
return event # type: ignore[no-any-return]

def next_event(self) -> Union[Event, Type[Sentinel]]:
def next_event(self) -> Union[Event, NEED_DATA, PAUSED]:
"""Parse the next event out of our receive buffer, update our internal
state, and return it.
Expand Down

0 comments on commit 04cc0f7

Please sign in to comment.