Skip to content

Commit 31c0b8d

Browse files
author
Alisson Claudino
committed
fix: add missing type hints
1 parent 041d841 commit 31c0b8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch/_otel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646

4747
class OpenTelemetry:
48-
current_context = None
48+
current_context: dict[str, str] = {}
4949

5050
def __init__(
5151
self,
@@ -96,7 +96,7 @@ def span(
9696
)
9797

9898
@contextlib.contextmanager
99-
def recover_parent_context(self):
99+
def recover_parent_context(self) -> Generator[None, None, None]:
100100
token = None
101101
if self.current_context:
102102
otel_parent_ctx = TraceContextTextMapPropagator().extract(

0 commit comments

Comments
 (0)