From 1a3138ff13b6e848cdd59165030a90c6bface812 Mon Sep 17 00:00:00 2001 From: Topher Brown <206988+topher200@users.noreply.github.com> Date: Wed, 29 Oct 2025 22:45:49 -0400 Subject: [PATCH] [gunicorn] Update sock.pyi `BaseSocket.sock` wraps a `socket.socket`. This can be seen in the [Gunicorn codebase](https://github.com/benoitc/gunicorn/blob/56b5ad87f8d72a674145c273ed8f547513c2b409/gunicorn/sock.py#L31). --- stubs/gunicorn/gunicorn/sock.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stubs/gunicorn/gunicorn/sock.pyi b/stubs/gunicorn/gunicorn/sock.pyi index 4ce1b77cf857..0c19078abe8a 100644 --- a/stubs/gunicorn/gunicorn/sock.pyi +++ b/stubs/gunicorn/gunicorn/sock.pyi @@ -9,6 +9,8 @@ from gunicorn.glogging import Logger as GLogger from .config import Config class BaseSocket: + sock: socket.socket + def __init__(self, address: str, conf: Config, log: GLogger, fd: SupportsIndex | None = None) -> None: ... def __getattr__(self, name: str) -> Any: ... def set_options(self, sock: socket.socket, bound: bool = False) -> socket.socket: ...