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
Version: redis-stack-server:7.2.0-v2 via docker; redis-py 5.0.0
Platform: macOS
Description: Redis.json().objlen returns type list instead of int. The typing hint suggests it should return int instead of list. In redis-cli, it does return int though.
The text was updated successfully, but these errors were encountered:
JSON.OBJLEN returns an array of integer replies for each path specified as the number of keys in the object or nil, if the matching JSON value is not an object.
JSON.OBJLEN returns an array of integer replies for each path specified as the number of keys in the object or nil, if the matching JSON value is not an object.
the type hint should probably be fixed.
Sorry my bad, objlen of redis-cli indeed returns list but the type hint is left unchanged in 5.0.1. I've just tested the 5.0.1 api and it still returns list.
Version: redis-stack-server:7.2.0-v2 via docker; redis-py 5.0.0
Platform: macOS
Description: Redis.json().objlen returns type list instead of int. The typing hint suggests it should return int instead of list. In redis-cli, it does return int though.
The text was updated successfully, but these errors were encountered: