-
Notifications
You must be signed in to change notification settings - Fork 2.6k
topk().list decodes "infinity" as float #3573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reaching out! We will have a look soon |
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. |
Closed with PR #3586 |
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: