Skip to content

Commit 85ef682

Browse files
committed
Move wsgiref to TYPE_CHECKING
1 parent b127938 commit 85ef682

File tree

1 file changed

+1
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi

1 file changed

+1
-2
lines changed

instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he
220220
import wsgiref.util as wsgiref_util
221221
from timeit import default_timer
222222
from typing import TYPE_CHECKING, Any, Callable, Iterable, TypeVar, cast
223-
from wsgiref.types import StartResponse
224223

225224
from opentelemetry import context, trace
226225
from opentelemetry.instrumentation._semconv import (
@@ -274,7 +273,7 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he
274273
)
275274

276275
if TYPE_CHECKING:
277-
from wsgiref.types import WSGIApplication, WSGIEnvironment
276+
from wsgiref.types import StartResponse, WSGIApplication, WSGIEnvironment
278277

279278

280279
T = TypeVar("T")

0 commit comments

Comments
 (0)