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
{{ message }}
Repository navigation
Wrong typing for client parameters in ScriptΒ #3123
The arguments referring to a client in the Script class are type annotated to the Redis class, although instances of RedisCluster can also end up being the client. This also applies to the ScriptCommands.register_script function, where it expects self to be a Redis instance, even though I can run this successfully with a RedisCluster client.
Causes the following type error:
Cannot access member "register_script" for type "RedisCluster"
Could not bind method "register_script" because "RedisCluster" is not assignable to parameter "self"
"RedisCluster" is incompatible with "Redis" Pylance (reportGeneralTypeIssues)
This issue has been automatically marked as stale due to inactivity.
It will be closed in 30 days if no further activity occurs.
If you believe this issue is still relevant, please add a comment to keep it open.
Activity
github-actions commentedon Mar 15, 2025
This issue is marked stale. It will be closed in 30 days if it is not updated.
bcmills commentedon Mar 16, 2025
Ah, staleness bots: because bugs just go away on their own if you ignore them! π
github-actions commentedon Mar 17, 2026
This issue has been automatically marked as stale due to inactivity.
It will be closed in 30 days if no further activity occurs.
If you believe this issue is still relevant, please add a comment to keep it open.
petyaslavova commentedon Mar 31, 2026
Fixed with #3876
arlosnow1231-stack commentedon Mar 31, 2026