Skip to content

Commit 4664bb3

Browse files
sudosubinflaeppe
andauthored
5.0: Update django.core.servers.basehttp (typeddjango#2070)
Co-authored-by: Petter Friberg <[email protected]>
1 parent 813458e commit 4664bb3

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

django-stubs/core/servers/basehttp.pyi

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import socketserver
22
from io import BytesIO
3-
from typing import Any
3+
from typing import Any, Callable
44
from wsgiref import simple_server
55

66
from django.core.handlers.wsgi import WSGIHandler, WSGIRequest
77

8+
def get_internal_wsgi_application() -> WSGIHandler: ...
9+
def is_broken_pipe_error() -> bool: ...
10+
811
class WSGIServer(simple_server.WSGIServer):
912
request_queue_size: int
1013
address_family: Any
@@ -32,4 +35,12 @@ class WSGIRequestHandler(simple_server.WSGIRequestHandler):
3235
request_version: str
3336
def handle(self) -> None: ...
3437

35-
def get_internal_wsgi_application() -> WSGIHandler: ...
38+
def run(
39+
addr: str | bytes | bytearray,
40+
port: int,
41+
wsgi_handler: WSGIHandler,
42+
ipv6: bool = ...,
43+
threading: bool = ...,
44+
on_bind: Callable[[str], None] | None = ...,
45+
server_cls: type[WSGIServer] = ...,
46+
) -> None: ...

0 commit comments

Comments
 (0)