Skip to content
Draft
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
Prev Previous commit
Next Next commit
autofix this
  • Loading branch information
pajod committed Oct 25, 2025
commit 073ec35318e3e047e1172ccc6f18e2cf5b2e6cc5
4 changes: 2 additions & 2 deletions stubs/gunicorn/gunicorn/debug.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ __all__ = ["spew", "unspew"]

from collections.abc import Container
from types import FrameType
from typing import Any
from typing import Any, Literal
from typing_extensions import Self

class Spew:
Expand All @@ -13,7 +13,7 @@ class Spew:
def __call__(
self,
frame: FrameType,
event: Literal[call, line, "return", exception, opcode],
event: Literal["call"] | Literal["line"] | Literal["return"] | Literal["exception"] | Literal["opcode"],
arg: Any, # `arg` is not used inside the function, stub is set Any
) -> Self: ...

Expand Down
3 changes: 2 additions & 1 deletion stubs/gunicorn/gunicorn/http/wsgi.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import re
import socket
from _typeshed import ReadableBuffer
from collections.abc import Callable
from typing import Any, Never
from typing import Any
from typing_extensions import Never

from gunicorn.config import Config
from gunicorn.http import Request
Expand Down
8 changes: 6 additions & 2 deletions stubs/gunicorn/gunicorn/util.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@ from _typeshed import FileDescriptorLike, FileDescriptorOrPath, HasFileno, StrOr
from inspect import _IntrospectableCallable, _ParameterKind
from socket import socket
from typing import Literal, NoReturn
from typing_extensions import LiteralString
from urllib.parse import SplitResult

from gunicorn.glogging import Logger
from gunicorn.workers.base import Worker

from ._types import _AddressType, _WSGIAppType

REDIRECT_TO: str
hop_headers: set[str]

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

positionals: tuple[Literal[_ParameterKind.POSITIONAL_ONLY], Literal[_ParameterKind.POSITIONAL_OR_KEYWORD]]

Expand Down
Loading