Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stdlib/asyncio/sslproto.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ssl
import sys
from _typeshed import ReadableBuffer
from collections import deque
from collections.abc import Callable
from enum import Enum
Expand Down Expand Up @@ -76,7 +77,7 @@ class _SSLProtocolTransport(transports._FlowControlMixin, transports.Transport):
def get_extra_info(self, name: str, default: Any | None = None) -> dict[str, Any]: ...
@property
def _protocol_paused(self) -> bool: ...
def write(self, data: bytes | bytearray | memoryview) -> None: ...
def write(self, data: ReadableBuffer) -> None: ...
def can_write_eof(self) -> Literal[False]: ...
if sys.version_info >= (3, 11):
def get_write_buffer_limits(self) -> tuple[int, int]: ...
Expand Down
5 changes: 3 additions & 2 deletions stdlib/asyncio/transports.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from _typeshed import ReadableBuffer
from asyncio.events import AbstractEventLoop
from asyncio.protocols import BaseProtocol
from collections.abc import Iterable, Mapping
Expand All @@ -24,8 +25,8 @@ class WriteTransport(BaseTransport):
def set_write_buffer_limits(self, high: int | None = None, low: int | None = None) -> None: ...
def get_write_buffer_size(self) -> int: ...
def get_write_buffer_limits(self) -> tuple[int, int]: ...
def write(self, data: bytes | bytearray | memoryview) -> None: ...
def writelines(self, list_of_data: Iterable[bytes | bytearray | memoryview]) -> None: ...
def write(self, data: ReadableBuffer) -> None: ...
def writelines(self, list_of_data: Iterable[ReadableBuffer]) -> None: ...
def write_eof(self) -> None: ...
def can_write_eof(self) -> bool: ...
def abort(self) -> None: ...
Expand Down