Skip to content

Commit 38bda82

Browse files
committed
remove type alias, but add string
1 parent 6c75215 commit 38bda82

File tree

1 file changed

+3
-4
lines changed
  • instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,14 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he
273273
)
274274

275275
if TYPE_CHECKING:
276-
from typing import TypeAlias
277276
from wsgiref.types import StartResponse, WSGIApplication, WSGIEnvironment
278277

279278

280279
T = TypeVar("T")
281280
RequestHook = Callable[[trace.Span, "WSGIEnvironment"], None]
282-
ResponseHook: TypeAlias = (
283-
"Callable[[trace.Span, WSGIEnvironment, str, list[tuple[str, str]]], None]"
284-
)
281+
ResponseHook = Callable[
282+
[trace.Span, "WSGIEnvironment", str, "list[tuple[str, str]]"], None
283+
]
285284

286285
_HTTP_VERSION_PREFIX = "HTTP/"
287286
_CARRIER_KEY_PREFIX = "HTTP_"

0 commit comments

Comments
 (0)