bullmq
bullmq copied to clipboard
[Python] types could be bit better
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.