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
2 changes: 1 addition & 1 deletion stubs/gunicorn/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "26.0.0"
version = "26.1.0"
upstream-repository = "https://github.com/benoitc/gunicorn"
optional-dependencies = ["types-gevent"]

Expand Down
1 change: 1 addition & 0 deletions stubs/gunicorn/gunicorn/arbiter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,6 @@ class Arbiter:
def kill_worker(self, pid: int, sig: int) -> None: ...
def spawn_dirty_arbiter(self) -> int | None: ...
def kill_dirty_arbiter(self, sig: int) -> None: ...
def handle_dirty_arbiter_exit(self, wpid: int, status: int) -> None: ...
def reap_dirty_arbiter(self) -> None: ...
def manage_dirty_arbiter(self) -> None: ...
2 changes: 2 additions & 0 deletions stubs/gunicorn/gunicorn/asgi/parser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ class UnsupportedTransferCoding(ParseError): ...
class InvalidChunkSize(ParseError): ...
class InvalidChunkExtension(ParseError): ...

RFC9110_5_3_SINGLETON_FIELDS: Final[frozenset[bytes]]

class PythonProtocol:
__slots__ = (
"_on_message_begin",
Expand Down
2 changes: 1 addition & 1 deletion stubs/gunicorn/gunicorn/config.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def validate_file_exists(val: str) -> str: ...
def validate_file_exists(val: None) -> None: ...

def validate_list_string(val: str | list[str] | None) -> list[str]: ...
def validate_list_of_existing_files(val: str | list[str] | None) -> list[str]: ...
def validate_list_of_files_or_patterns(val: str | list[str] | None) -> list[str]: ...
def validate_string_to_addr_list(val: str | None) -> list[str]: ...
def validate_string_to_list(val: str | None) -> list[str]: ...

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 @@ -36,6 +36,7 @@ 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]]
RFC9110_5_3_SINGLETON_FIELDS: Final[frozenset[str]]

class Message:
cfg: Config
Expand Down
7 changes: 5 additions & 2 deletions stubs/gunicorn/gunicorn/util.pyi
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import types
from _typeshed import FileDescriptorLike, FileDescriptorOrPath, StrOrBytesPath
from inspect import _IntrospectableCallable, _ParameterKind
from re import Pattern
from socket import socket
from typing import Any, Literal
from typing import Any, Final, Literal
from typing_extensions import Never
from urllib.parse import SplitResult

from ._types import _AddressType, _WSGIAppType

REDIRECT_TO: str
REDIRECT_TO: Final[str]
GLOB_MAGIC_RE: Final[Pattern[str]]
hop_headers: set[str]

def is_glob_pattern(value: str) -> bool: ...
def load_entry_point(distribution: str, group: str, name: str) -> type[object]: ...
def load_class(
uri: str | object, default: str = "gunicorn.workers.sync.SyncWorker", section: str = "gunicorn.workers"
Expand Down