Skip to content
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

Bump waitress to 3.0.* #11803

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion stubs/waitress/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "2.1.*"
version = "3.0.*"
upstream_repository = "https://github.com/Pylons/waitress"

[tool.stubtest]
Expand Down
8 changes: 4 additions & 4 deletions stubs/waitress/waitress/task.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from _typeshed import Unused
from _typeshed.wsgi import WSGIEnvironment
from collections import deque
from collections.abc import Callable, Mapping, Sequence
from logging import Logger
from threading import Condition, Lock
from typing import Any

from .channel import HTTPChannel
from .utilities import Error
Expand Down Expand Up @@ -47,6 +47,7 @@ class Task:
def service(self) -> None: ...
@property
def has_body(self) -> bool: ...
def set_close_on_finish(self) -> None: ...
def build_response_header(self) -> bytes: ...
def remove_content_length_header(self) -> None: ...
def start(self) -> None: ...
Expand All @@ -61,12 +62,11 @@ class ErrorTask(Task):
def execute(self) -> None: ...

class WSGITask(Task):
# Environment dict union too complex
environ: dict[str, Any] | None
environ: WSGIEnvironment | None
response_headers: Sequence[tuple[str, str]]
complete: bool
status: str
content_length: int | None
close_on_finish: bool
def execute(self) -> None: ...
def get_environment(self) -> dict[str, Any]: ...
def get_environment(self) -> WSGIEnvironment: ...
2 changes: 1 addition & 1 deletion stubs/waitress/waitress/utilities.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Error:
reason: str
body: str
def __init__(self, body: str) -> None: ...
def to_response(self) -> tuple[str, Sequence[tuple[str, str]], str]: ...
def to_response(self, ident: str | None = None) -> tuple[str, Sequence[tuple[str, str]], str]: ...
def wsgi_response(self, environ: Unused, start_response: StartResponse) -> Iterator[str]: ...

class BadRequest(Error):
Expand Down