8000 asyncore: improve bytes handling by sobolevn · Pull Request #9034 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

asyncore: improve bytes handling #9034

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
Oct 30, 2022
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
asyncore: improve bytes handling
  • Loading branch information
sobolevn committed Oct 29, 2022
commit 8ecea25b951e8d603e59f6fbdacc306e42c0201b
6 changes: 3 additions & 3 deletions stdlib/asyncore.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class dispatcher:
def bind(self, addr: tuple[Any, ...] | str) -> None: ...
def connect(self, address: tuple[Any, ...] | str) -> None: ...
def accept(self) -> tuple[_Socket, Any] | None: ...
def send(self, data: bytes) -> int: ...
def send(self, data: ReadableBuffer) -> int: ...
def recv(self, buffer_size: int) -> bytes: ...
def close(self) -> None: ...
def log(self, message: Any) -> None: ...
Expand Down Expand Up @@ -80,8 +80,8 @@ if sys.platform != "win32":
def getsockopt(self, level: int, optname: int, buflen: None = ...) -> int: ...
@overload
def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ...
def read(self, bufsize: int, flags: int = ...) -> bytes: ...
def write(self, data: bytes, flags: int = ...) -> int: ...
read = recv
write = send
def close(self) -> None: ...
def fileno(self) -> int: ...

Expand Down
0