Open Avasam opened 1 year ago
I could make a PR to fix it, but the problem is that I don't know what was the intention. Is the protocol wrong for wanting connection_pool
? Or are the commands wrong for not implementing it? Is the variable set dynamically later down the line? If so, where, and should connection_pool
be potentially None
instead of potentially undefined?
This issue is marked stale. It will be closed in 30 days if it is not updated.
Update. I can make a PR for this. I just need an answer first.
Version: redis-py 4.5.4
Platform: Any
Description:
The
CommandsProtocol
protocol atredis/typing.py
has aconnection_pool
member. However, all commands that subclasses the protocol seem to be missingconnection_pool
in their implementation. This causes issues with type-checking tools expecting the commands to respect the Protocol.