Skip to content

Commit 7463aeb

Browse files
committed
fixed mypy
1 parent 294d74a commit 7463aeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/service-library/src/servicelib/tracing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from contextlib import contextmanager
2+
from contextvars import Token
23
from typing import TypeAlias
34

45
from opentelemetry import context as otcontext
@@ -23,7 +24,7 @@ def get_context() -> TracingContext:
2324

2425
@contextmanager
2526
def use_tracing_context(context: TracingContext):
26-
token: object | None = None
27+
token: Token[otcontext.Context] | None = None
2728
if context is not None:
2829
token = otcontext.attach(context)
2930
try:

0 commit comments

Comments
 (0)