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 documentation shows that calls to a pipeline can be chained. Here's an example from the documentation:
pipe=r.pipeline()
pipe.set("a", "a value").set("b", "b value").get("a").execute()
The type hints appear to be set incorrectly on the methods to return the pipeline object.
It seems that since Pipeline inherits from Redis whichin turn inherts from RedisModuleCommands, CoreCommands, and SentinelCommands, the types for chained Pipeline commands aren't working because the inherited commands return their "normal" responses as typed.
The same thing is happening in the asyncio module.
The text was updated successfully, but these errors were encountered:
I'm using redis-py version 5.2.1.
The documentation shows that calls to a pipeline can be chained. Here's an example from the documentation:
The type hints appear to be set incorrectly on the methods to return the pipeline object.
It seems that since
Pipeline
inherits fromRedis
whichin turn inherts fromRedisModuleCommands
,CoreCommands
, andSentinelCommands
, the types for chainedPipeline
commands aren't working because the inherited commands return their "normal" responses as typed.The same thing is happening in the asyncio module.
The text was updated successfully, but these errors were encountered: