From 05ac6a7215b1cbe1ad5afbee918bdbd29e3aa5c5 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Mon, 20 Jun 2022 21:06:15 -0700 Subject: [PATCH] Bump waitress to 2.1.* (#8113) --- stubs/waitress/METADATA.toml | 2 +- stubs/waitress/waitress/parser.pyi | 2 -- stubs/waitress/waitress/rfc7230.pyi | 3 --- stubs/waitress/waitress/utilities.pyi | 11 ----------- stubs/waitress/waitress/wasyncore.pyi | 2 +- 5 files changed, 2 insertions(+), 18 deletions(-) diff --git a/stubs/waitress/METADATA.toml b/stubs/waitress/METADATA.toml index a035bd0a0..91331cf6a 100644 --- a/stubs/waitress/METADATA.toml +++ b/stubs/waitress/METADATA.toml @@ -1,2 +1,2 @@ -version = "2.0.*" +version = "2.1.*" requires = [] diff --git a/stubs/waitress/waitress/parser.pyi b/stubs/waitress/waitress/parser.pyi index 1211c4bb0..1bdb9ad88 100644 --- a/stubs/waitress/waitress/parser.pyi +++ b/stubs/waitress/waitress/parser.pyi @@ -6,8 +6,6 @@ from waitress.adjustments import Adjustments from waitress.receiver import ChunkedReceiver, FixedStreamReceiver from waitress.utilities import Error -from .rfc7230 import HEADER_FIELD as HEADER_FIELD - class ParsingError(Exception): ... class TransferEncodingNotImplemented(Exception): ... diff --git a/stubs/waitress/waitress/rfc7230.pyi b/stubs/waitress/waitress/rfc7230.pyi index af3bd2ea5..27593779f 100644 --- a/stubs/waitress/waitress/rfc7230.pyi +++ b/stubs/waitress/waitress/rfc7230.pyi @@ -1,5 +1,3 @@ -from typing import Any, Pattern - from .compat import tobytes as tobytes WS: str @@ -13,4 +11,3 @@ VCHAR: str FIELD_VCHAR: str FIELD_CONTENT: str FIELD_VALUE: str -HEADER_FIELD: Pattern[Any] diff --git a/stubs/waitress/waitress/utilities.pyi b/stubs/waitress/waitress/utilities.pyi index f8ebc1135..bb43fa5d2 100644 --- a/stubs/waitress/waitress/utilities.pyi +++ b/stubs/waitress/waitress/utilities.pyi @@ -2,8 +2,6 @@ from collections.abc import Callable, Mapping, Sequence from logging import Logger from typing import Any, Match, Pattern -from .rfc7230 import OBS_TEXT as OBS_TEXT, VCHAR as VCHAR - logger: Logger queue_logger: Logger @@ -36,15 +34,6 @@ monthname: Sequence[str] def build_http_date(when: int) -> str: ... def parse_http_date(d: str) -> int: ... - -vchar_re: str -obs_text_re: str -qdtext_re: str -quoted_pair_re: str -quoted_string_re: str -quoted_string: Pattern[Any] -quoted_pair: Pattern[Any] - def undquote(value: str) -> str: ... def cleanup_unix_socket(path: str) -> None: ... diff --git a/stubs/waitress/waitress/wasyncore.pyi b/stubs/waitress/waitress/wasyncore.pyi index a2f05bfba..f89ed9677 100644 --- a/stubs/waitress/waitress/wasyncore.pyi +++ b/stubs/waitress/waitress/wasyncore.pyi @@ -49,7 +49,7 @@ class dispatcher: def bind(self, addr: tuple[str, int]) -> None: ... def connect(self, address: tuple[str, int]) -> None: ... def accept(self) -> tuple[_socket, tuple[str, int]] | None: ... - def send(self, data: bytes) -> int: ... + def send(self, data: bytes, do_close: bool = ...) -> int: ... def recv(self, buffer_size: int) -> bytes: ... def close(self) -> None: ... def log(self, message: str) -> None: ...