From 7838ab5f98962aa77e40ca4d378e2f6a056d5d05 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Tue, 29 Oct 2024 11:15:01 +0100 Subject: [PATCH] [waitress] Update to 3.0.1 (#12917) --- stubs/waitress/METADATA.toml | 2 +- stubs/waitress/waitress/channel.pyi | 2 +- stubs/waitress/waitress/wasyncore.pyi | 9 --------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/stubs/waitress/METADATA.toml b/stubs/waitress/METADATA.toml index cc1f5426f..b6fe76b59 100644 --- a/stubs/waitress/METADATA.toml +++ b/stubs/waitress/METADATA.toml @@ -1,4 +1,4 @@ -version = "3.0.*" +version = "~=3.0.1" upstream_repository = "https://github.com/Pylons/waitress" [tool.stubtest] diff --git a/stubs/waitress/waitress/channel.pyi b/stubs/waitress/waitress/channel.pyi index 40c67a20a..61f234855 100644 --- a/stubs/waitress/waitress/channel.pyi +++ b/stubs/waitress/waitress/channel.pyi @@ -32,6 +32,7 @@ class HTTPChannel(wasyncore.dispatcher): sendbuf_len: int task_lock: Lock outbuf_lock: Condition + connected: bool addr: _RetAddress def __init__( self, server: BaseWSGIServer, sock: socket, addr: _RetAddress, adj: Adjustments, map: _SocketMap | None = None @@ -43,7 +44,6 @@ class HTTPChannel(wasyncore.dispatcher): def handle_read(self) -> None: ... def send_continue(self) -> None: ... def received(self, data: bytes) -> bool: ... - connected: bool def handle_close(self) -> None: ... def add_channel(self, map: _SocketMap | None = None) -> None: ... def del_channel(self, map: _SocketMap | None = None) -> None: ... diff --git a/stubs/waitress/waitress/wasyncore.pyi b/stubs/waitress/waitress/wasyncore.pyi index facac6cbc..b50972143 100644 --- a/stubs/waitress/waitress/wasyncore.pyi +++ b/stubs/waitress/waitress/wasyncore.pyi @@ -47,7 +47,6 @@ class dispatcher: def writable(self) -> bool: ... def listen(self, num: int) -> None: ... def bind(self, addr: _RetAddress) -> None: ... - def connect(self, address: _RetAddress) -> None: ... def accept(self) -> tuple[_Socket, _RetAddress] | None: ... def send(self, data: bytes, do_close: bool = True) -> int: ... def recv(self, buffer_size: int) -> bytes: ... @@ -67,14 +66,6 @@ class dispatcher: def handle_accepted(self, sock: _Socket, addr: _RetAddress) -> None: ... def handle_close(self) -> None: ... -class dispatcher_with_send(dispatcher): - out_buffer: bytes - def __init__(self, sock: _Socket | None = None, map: _SocketMap | None = None) -> None: ... - def initiate_send(self) -> None: ... - handle_write = initiate_send - def writable(self) -> bool: ... - def send(self, data: bytes) -> None: ... # type: ignore[override] - def close_all(map: _SocketMap | None = None, ignore_all: bool = False) -> None: ... if sys.platform != "win32":