Skip to content

Commit b25a69a

Browse files
[gunicorn] Fix ssl_context function return type annotation
1 parent bfabbcb commit b25a69a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/gunicorn/gunicorn/sock.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import socket
22
from _typeshed import Incomplete
33
from collections.abc import Iterable
44
from logging import Logger
5-
from ssl import SSLSocket
5+
from ssl import SSLSocket, SSLContext
66
from typing import Any, ClassVar, Literal, SupportsIndex, override
77

88
from .config import Config
@@ -37,5 +37,5 @@ class UnixSocket(BaseSocket):
3737

3838
def create_sockets(conf: Config, log: Logger, fds: Iterable[SupportsIndex] | None = None) -> list[BaseSocket]: ...
3939
def close_sockets(listeners: Iterable[socket.socket], unlink: bool = True) -> None: ...
40-
def ssl_context(conf: Config) -> Incomplete: ...
40+
def ssl_context(conf: Config) -> SSLContext: ...
4141
def ssl_wrap_socket(sock: socket.socket, conf: Config) -> SSLSocket: ...

0 commit comments

Comments
 (0)