10000 socketserver: Use BufferedIOBase instead of BinaryIO by srittau · Pull Request #12568 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

socketserver: Use BufferedIOBase instead of BinaryIO #12568

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 1 commit into from
Aug 22, 2024
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
11 changes: 6 additions & 5 deletions stdlib/socketserver.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import types
from _socket import _Address, _RetAddress
from _typeshed import ReadableBuffer
from collections.abc import Callable
from io import BufferedIOBase
from socket import socket as _socket
from typing import Any, BinaryIO, ClassVar
from typing import Any, ClassVar
from typing_extensions import Self, TypeAlias

__all__ = [
Expand Down Expand Up @@ -158,11 +159,11 @@ class StreamRequestHandler(BaseRequestHandler):
timeout: ClassVar[float | None] # undocumented
disable_nagle_algorithm: ClassVar[bool] # undocumented
connection: Any # undocumented
rfile: BinaryIO
wfile: BinaryIO
rfile: BufferedIOBase
wfile: BufferedIOBase

class DatagramRequestHandler(BaseRequestHandler):
packet: bytes # undocumented
socket: _socket # undocumented
rfile: BinaryIO
wfile: BinaryIO
rfile: BufferedIOBase
wfile: BufferedIOBase
0