Skip to content

urllib.response: improve bytes handling #9142

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 3 commits into from
Nov 10, 2022
Merged
Changes from all 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
6 changes: 3 additions & 3 deletions stdlib/urllib/response.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from _typeshed import Self
from _typeshed import ReadableBuffer, Self
from collections.abc import Callable, Iterable
from email.message import Message
from types import TracebackType
Expand Down Expand Up @@ -33,8 +33,8 @@ class addbase(BinaryIO):
def tell(self) -> int: ...
def truncate(self, size: int | None = ...) -> int: ...
def writable(self) -> bool: ...
def write(self, s: bytes) -> int: ...
def writelines(self, lines: Iterable[bytes]) -> None: ...
def write(self, s: ReadableBuffer) -> int: ...
def writelines(self, lines: Iterable[ReadableBuffer]) -> None: ...

class addclosehook(addbase):
closehook: Callable[..., object]
Expand Down