Skip to content
Merged
Show file tree
Hide file tree
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: 9 additions & 2 deletions stubs/gunicorn/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
version = "25.3.0"
version = "26.0.0"
upstream-repository = "https://github.com/benoitc/gunicorn"
dependencies = ["types-gevent"]

[tool.stubtest]
supported-platforms = ["linux", "darwin"]
ci-platforms = ["linux", "darwin"]
stubtest-dependencies = ["gevent>=1.4.0", "eventlet>=0.24.1,!=0.36.0", "tornado>=0.2", "setproctitle", "PasteDeploy", "inotify"]
stubtest-dependencies = [
"gevent>=1.4.0",
"eventlet>=0.24.1,!=0.36.0",
"tornado>=0.2",
"setproctitle",
"PasteDeploy",
"inotify",
]
1 change: 1 addition & 0 deletions stubs/gunicorn/gunicorn/asgi/parser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class InvalidProxyLine(ParseError): ...
class InvalidProxyHeader(ParseError): ...

PP_V2_SIGNATURE: Final[bytes]
RFC9110_6_5_1_FORBIDDEN_TRAILER: Final[frozenset[bytes]]

class PPCommand(IntEnum):
LOCAL = 0x0
Expand Down
2 changes: 1 addition & 1 deletion stubs/gunicorn/gunicorn/asgi/protocol.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class _BodyReceieverReceiveReturnType(TypedDict):
more_body: NotRequired[bool]

class BodyReceiver:
__slots__ = ("_chunks", "_complete", "_body_finished", "_closed", "_waiter", "request", "protocol")
__slots__ = ("_chunks", "_complete", "_body_finished", "_closed", "_body_wait_expired", "_waiter", "request", "protocol")
request: CallbackRequest
protocol: ASGIProtocol

Expand Down
1 change: 1 addition & 0 deletions stubs/gunicorn/gunicorn/http/message.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ TOKEN_RE: Final[re.Pattern[str]]
METHOD_BADCHAR_RE: Final[re.Pattern[str]]
VERSION_RE: Final[re.Pattern[str]]
RFC9110_5_5_INVALID_AND_DANGEROUS: Final[re.Pattern[str]]
RFC9110_6_5_1_FORBIDDEN_TRAILER: Final[frozenset[str]]

class Message:
cfg: Config
Expand Down
2 changes: 1 addition & 1 deletion stubs/gunicorn/gunicorn/http/parser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Parser:

def __init__(self, cfg: Config, source: socket.socket | Iterable[bytes], source_addr: _AddressType) -> None: ...
def __iter__(self) -> Iterator[Request]: ...
def finish_body(self) -> None: ...
def finish_body(self, deadline: float | None = None, max_bytes: int | None = None) -> None: ...
def __next__(self) -> Request: ...

next: Callable[[Parser], Request]
Expand Down
1 change: 1 addition & 0 deletions stubs/gunicorn/gunicorn/util.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def parse_address(netloc: str, default_port: str = "8000") -> _AddressType: ...
def close_on_exec(fd: FileDescriptorLike) -> None: ...
def set_non_blocking(fd: FileDescriptorLike) -> None: ...
def close(sock: socket) -> None: ...
def close_graceful(sock: socket, timeout: float = 2.0, max_drain: int = 65536) -> None: ...
def write_chunk(sock: socket, data: bytes) -> None: ...
def write(sock: socket, data: bytes, chunked: bool = False) -> None: ...
def write_nonblock(sock: socket, data: bytes, chunked: bool = False) -> None: ...
Expand Down
23 changes: 0 additions & 23 deletions stubs/gunicorn/gunicorn/workers/geventlet.pyi

This file was deleted.

2 changes: 1 addition & 1 deletion stubs/gunicorn/gunicorn/workers/gthread.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TConn:
def init(self) -> None: ...
def set_timeout(self) -> None: ...
def wait_for_data(self, timeout: float | None) -> bool: ...
def close(self) -> None: ...
def close(self, graceful: bool = False) -> None: ...

class PollableMethodQueue:
def __init__(self) -> None: ...
Expand Down
Loading