Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mypy: error: Module 'redis' has no attribute 'RedisCluster' #2461

Closed
srmrz opened this issue Nov 18, 2022 · 1 comment
Closed

mypy: error: Module 'redis' has no attribute 'RedisCluster' #2461

srmrz opened this issue Nov 18, 2022 · 1 comment

Comments

@srmrz
Copy link

srmrz commented Nov 18, 2022

When I run mypy, I see the following:

error: Module 'redis' has no attribute 'RedisCluster'

What does my import look like?

from redis import Redis, StrictRedis, RedisCluster

Version: What redis-py and what redis version is the issue happening on?
4.3.4

Platform: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure)
Python 3.8, macOS

Description: Description of your issue, stack traces from errors and code that reproduces the issue
run mypy on a project with the import above.

@uglide
Copy link
Contributor

uglide commented Feb 8, 2023

Hello @srmrz
Thanks for the bug report. It's mypy bug. More info here python/mypy#3115

@uglide uglide closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants