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
This issue does not seem fully resolved, this code still crashes:
import asyncio
from redis.asyncio.cluster import RedisCluster # type: ignore
import redis.asyncio as redis # type: ignore
async def main():
r = RedisCluster.from_url("redis://localhost:16379/0")
p = r.pipeline()
p.json().set("blah", ".", 1)
await p.execute()
print("done")
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
asyncio.get_event_loop().run_until_complete(main())
I hacked up some changes that seem to make this pass, but it's obviously not what it should look like and I don't know if there are other situations that could be problematic: cf3bcdc
Version: 4.5.1
Platform: Python 3.11 on Windows 11
raises
AttributeError: 'RedisCluster' object has no attribute 'json'
Actually, it's a duplicate of #2234 which was closed without real solution
The text was updated successfully, but these errors were encountered: