We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0080c43 commit 4027776Copy full SHA for 4027776
csfunctions/devserver.py
@@ -35,13 +35,17 @@
35
import os
36
import time
37
from collections.abc import Iterable
38
-from wsgiref.types import StartResponse, WSGIEnvironment
+from typing import TYPE_CHECKING
39
40
from werkzeug.serving import run_simple
41
from werkzeug.wrappers import Request, Response
42
43
from csfunctions.handler import FunctionNotRegistered, execute
44
45
+if TYPE_CHECKING:
46
+ # these annotations are not available in python 3.10
47
+ from wsgiref.types import StartResponse, WSGIEnvironment
48
+
49
50
def _is_error_response(function_response: str | dict):
51
"""
0 commit comments