Skip to content

Commit

Permalink
Migrate stream to use classvar defaults
Browse files Browse the repository at this point in the history
same change as #10054 for streams
  • Loading branch information
bdraco committed Nov 30, 2024
1 parent c7899cd commit 1b83396
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiohttp/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ class EmptyStreamReader(StreamReader): # lgtm [py/missing-call-to-init]

_read_eof_chunk: bool = False

def __init__(self) -> None:
"""A StreamReader that is always at EOF."""

def __repr__(self) -> str:
return "<%s>" % self.__class__.__name__

Expand Down

0 comments on commit 1b83396

Please sign in to comment.