File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 3535import os
3636import time
3737from collections .abc import Iterable
38- from typing import TYPE_CHECKING
3938
4039from werkzeug .serving import run_simple
4140from werkzeug .wrappers import Request , Response
4241
4342from csfunctions .handler import FunctionNotRegistered , execute
4443
45- if TYPE_CHECKING :
46- # these annotations are not available in python 3.10
47- from wsgiref .types import StartResponse , WSGIEnvironment
48-
4944
5045def _is_error_response (function_response : str | dict ):
5146 """
@@ -132,7 +127,7 @@ def handle_request(request: Request) -> Response:
132127 return Response (response , content_type = "application/json" )
133128
134129
135- def application (environ : WSGIEnvironment , start_response : StartResponse ) -> Iterable [bytes ]:
130+ def application (environ , start_response ) -> Iterable [bytes ]:
136131 request = Request (environ )
137132 response = handle_request (request )
138133 return response (environ , start_response )
You can’t perform that action at this time.
0 commit comments