8000 Allow memoryview[bytes] in write() and writelines() by Dreamsorcerer · Pull Request #13519 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Allow memoryview[bytes] in write() and writelines() #13519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Mar 20, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update transports.pyi
  • Loading branch information
Dreamsorcerer authored Feb 21, 2025
commit 5d99818012c0430a72275de900b9a6ba54c3ed34
5 changes: 2 additions & 3 deletions stdlib/asyncio/transports.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import ReadableBuffer
from asyncio.events import AbstractEventLoop
from asyncio.protocols import BaseProtocol
from collections.abc import Iterable, Mapping
Expand All @@ -25,8 +24,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: ReadableBuffer) -> None: ...
def writelines(self, list_of_data: Iterable[ReadableBuffer]) -> None: ...
def write(self, data: bytes | bytearray | memoryview[object]) -> None: ...
def writelines(self, list_of_data: Iterable[bytes | bytearray | memoryview[object]]) -> None: ...
def write_eof(self) -> None: ...
def can_write_eof(self) -> bool: ...
def abort(self) -> None: ...
Expand Down
Loading
0