You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is related to the specific word "infinity". In the response parsing we have a postprocessing callback for the list command. It goes through all items and tries to convert each value to int, float or string - in that order. In case of failed conversion, it goes to the next type.
float('infinity') produces valid float object, although in this case it is not the desired behavior.
The same will happen with strings like 'nan', 'inf', '-inf', '-infinity'.
Version: 5.2.1
Platform: Python 3.13.2
Expected behavior
Calling
topk().list()
on a topk structure containing the string "infinity" should include the string "infinity" in the results.Actual behavior
The string "infinity" gets decoded as an
inf
float value.The text was updated successfully, but these errors were encountered: