bullmq icon indicating copy to clipboard operation
bullmq copied to clipboard

[Python] types could be bit better

Open RolandasRazma opened this issue 1 year ago • 0 comments

python bullmq 2.13.1

RedisConnection allows connection to be passed as string def init(self, redisOpts: dict | str | redis.Redis = {}): but QueueBaseOptions and WorkerOptions doesn't allow string. I suggest to unify to eliminate confusion.

another thing:

def init(self, redisOpts: dict | str | redis.Redis = {}): Redis type is redis.Redis but that is not exactly true import redis.asyncio as redis.

RolandasRazma avatar Mar 27 '25 10:03 RolandasRazma