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
Next Next commit
Allow memoryview[bytes] in write() and writelines()
  • Loading branch information
Dreamsorcerer authored Feb 20, 2025
commit 1e73c5ba5b28e2cbdae551849a43438d1e63211c
4 changes: 2 additions & 2 deletions stdlib/asyncio/transports.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,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: bytes | bytearray | memoryview) -> None: ...
def writelines(self, list_of_data: Iterable[bytes | bytearray | memoryview]) -> None: ...
def write(self, data: bytes | bytearray | memoryview[int] | memoryview[bytes]) -> None: ...
def writelines(self, list_of_data: Iterable[bytes | bytearray | memoryview[int] | memoryview[bytes]]) -> None: ...
def write_eof(self) -> None: ...
def can_write_eof(self) -> bool: ...
def abort(self) -> None: ...
Expand Down
Loading
0