Skip to content

Commit b0121c0

Browse files
authored
fix(serializer): NaN to string rather than None (#1253)
1 parent b6bba2e commit b0121c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langfuse/_utils/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def default(self, obj: Any):
6363
return obj.tolist()
6464

6565
if isinstance(obj, float) and math.isnan(obj):
66-
return None
66+
return "NaN"
6767

6868
if isinstance(obj, float) and math.isinf(obj):
6969
return "Infinity"

0 commit comments

Comments
 (0)