Skip to content

Commit

Permalink
remove unneeded AsyncIterator base class from asyncio.StreamReader (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
tungol authored Oct 15, 2024
1 parent 816b47c commit aedf65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/asyncio/streams.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ssl
import sys
from _typeshed import ReadableBuffer, StrPath
from collections.abc import AsyncIterator, Awaitable, Callable, Iterable, Sequence, Sized
from collections.abc import Awaitable, Callable, Iterable, Sequence, Sized
from types import ModuleType
from typing import Any, Protocol, SupportsIndex
from typing_extensions import Self, TypeAlias
Expand Down Expand Up @@ -137,7 +137,7 @@ class StreamWriter:
elif sys.version_info >= (3, 11):
def __del__(self) -> None: ...

class StreamReader(AsyncIterator[bytes]):
class StreamReader:
def __init__(self, limit: int = 65536, loop: events.AbstractEventLoop | None = None) -> None: ...
def exception(self) -> Exception: ...
def set_exception(self, exc: Exception) -> None: ...
Expand Down

0 comments on commit aedf65a

Please sign in to comment.