@@ -29,10 +29,10 @@ class BlockingRequestHandler(RequestHandlerBase):
2929 This class should only be instantiated inside the implementation of the :py:class:`BlockingHTTPServer`.
3030 """
3131
32- def __init__ (self ):
33- self .response_queue = Queue ()
32+ def __init__ (self ) -> None :
33+ self .response_queue : Queue [ Response ] = Queue ()
3434
35- def respond_with_response (self , response : Response ):
35+ def respond_with_response (self , response : Response ) -> None :
3636 self .response_queue .put_nowait (response )
3737
3838
@@ -59,11 +59,11 @@ class BlockingHTTPServer(HTTPServerBase):
5959
6060 def __init__ (
6161 self ,
62- host = DEFAULT_LISTEN_HOST ,
63- port = DEFAULT_LISTEN_PORT ,
62+ host : str = DEFAULT_LISTEN_HOST ,
63+ port : int = DEFAULT_LISTEN_PORT ,
6464 ssl_context : SSLContext | None = None ,
6565 timeout : int = 30 ,
66- ):
66+ ) -> None :
6767 super ().__init__ (host , port , ssl_context )
6868 self .timeout = timeout
6969 self .request_queue : Queue [Request ] = Queue ()
@@ -76,7 +76,7 @@ def assert_request(
7676 data : str | bytes | None = None ,
7777 data_encoding : str = "utf-8" ,
7878 headers : Mapping [str , str ] | None = None ,
79- query_string : None | QueryMatcher | str | bytes | Mapping = None ,
79+ query_string : None | QueryMatcher | str | bytes | Mapping [ str , str ] = None ,
8080 header_value_matcher : HeaderValueMatcher | None = None ,
8181 json : Any = UNDEFINED ,
8282 timeout : int = 30 ,
0 commit comments