Skip to content

Commit 934b4a6

Browse files
author
Jens Kürten
committed
remove incompatible types
1 parent 4027776 commit 934b4a6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

csfunctions/devserver.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,12 @@
3535
import os
3636
import time
3737
from collections.abc import Iterable
38-
from typing import TYPE_CHECKING
3938

4039
from werkzeug.serving import run_simple
4140
from werkzeug.wrappers import Request, Response
4241

4342
from 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

5045
def _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)

0 commit comments

Comments
 (0)