Skip to content

Commit b4fb6a6

Browse files
committed
fix
1 parent 0f2c731 commit b4fb6a6

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

langfuse/_client/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
Type,
2222
cast,
2323
overload,
24-
get_args,
2524
)
2625

2726
import backoff
@@ -52,6 +51,7 @@
5251
ObservationTypeLiteral,
5352
ObservationTypeLiteralNoEvent,
5453
ObservationTypeGenerationLike,
54+
get_observation_types_list,
5555
)
5656
from langfuse._client.resource_manager import LangfuseResourceManager
5757
from langfuse._client.span import (
@@ -669,7 +669,7 @@ def _create_observation_from_otel_span(
669669
LangfuseGuardrail,
670670
]:
671671
"""Create the appropriate observation type from an OTEL span."""
672-
if as_type in get_args(ObservationTypeGenerationLike):
672+
if as_type in get_observation_types_list(ObservationTypeGenerationLike):
673673
observation_class = self._get_span_class(as_type)
674674
# Type ignore to prevent overloads of internal _get_span_class function,
675675
# issue is that LangfuseEvent could be returned and that classes have diff. args

langfuse/_client/span.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
Type,
2727
Union,
2828
cast,
29-
get_args,
3029
overload,
3130
)
3231

0 commit comments

Comments
 (0)