Skip to content

Commit 637916a

Browse files
author
Andrei Bratu
committed
fixed typing errors
1 parent 11ff653 commit 637916a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/humanloop/otel/helpers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import json
2-
import uuid
32
from typing import Any, Callable, Union
43

54
from opentelemetry.sdk.trace import ReadableSpan
65
from opentelemetry.trace import SpanKind
76
from opentelemetry.util.types import AttributeValue
87

9-
from humanloop.otel.constants import HUMANLOOP_FILE_KEY, HUMANLOOP_LOG_KEY
10-
118
NestedDict = dict[str, Union["NestedDict", AttributeValue]]
129
NestedList = list[Union["NestedList", NestedDict]]
1310

tests/utilities/test_flow_decorator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_decorators_with_flow_decorator(
133133
)
134134

135135
# THEN 4 spans arrive at the exporter:
136-
spans: list[ReadableSpan] = exporter.get_finished_spans()
136+
spans: tuple[ReadableSpan] = exporter.get_finished_spans()
137137
assert len(spans) == 4
138138

139139
for i in range(4):
@@ -167,7 +167,7 @@ def test_flow_decorator_flow_in_flow(
167167
time.sleep(1)
168168

169169
# THEN 5 spans arrive at the exporter
170-
spans: list[ReadableSpan] = exporter.get_finished_spans()
170+
spans: tuple[ReadableSpan] = exporter.get_finished_spans()
171171
assert len(spans) == 5
172172

173173
for i in range(5):

0 commit comments

Comments
 (0)