Skip to content

Commit 4c533e0

Browse files
committed
fix(serializer): NaN to string rather than None
1 parent b6bba2e commit 4c533e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)