File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
django-stubs/core/servers Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 11import socketserver
22from io import BytesIO
3- from typing import Any
3+ from typing import Any , Callable
44from wsgiref import simple_server
55
66from django .core .handlers .wsgi import WSGIHandler , WSGIRequest
77
8+ def get_internal_wsgi_application () -> WSGIHandler : ...
9+ def is_broken_pipe_error () -> bool : ...
10+
811class 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 : ...
You can’t perform that action at this time.
0 commit comments