diff --git a/py/packages/genkit/src/genkit/core/tracing.py b/py/packages/genkit/src/genkit/core/tracing.py index 08ef95ad5..d80808959 100644 --- a/py/packages/genkit/src/genkit/core/tracing.py +++ b/py/packages/genkit/src/genkit/core/tracing.py @@ -8,7 +8,7 @@ import os import sys from collections.abc import Sequence -from typing import Any, cast +from typing import Any import requests # type: ignore[import-untyped] from opentelemetry import trace as trace_api @@ -37,7 +37,7 @@ def export(self, spans: Sequence[ReadableSpan]) -> SpanExportResult: 'startTime': span.start_time / 1000000, 'endTime': span.end_time / 1000000, 'attributes': convert_attributes( - attributes=cast(span.attributes, dict), # type: ignore + attributes=span.attributes, # type: ignore ), 'displayName': span.name, # "links": span.links,