--- id: types-redis version: "4.6.0.20241004" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-redis — Typing stubs for redis License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install types-redis uv add types-redis poetry add types-redis ## Description ## Typing stubs for redis This is a [PEP 561](https://peps.python.org/pep-0561/) type stub package for the [`redis`](https://github.com/redis/redis-py) package. It can be used by type-checking tools like [mypy](https://github.com/python/mypy/), [pyright](https://github.com/microsoft/pyright), [pytype](https://github.com/google/pytype/), PyCharm, etc. to check code that uses `redis`. This version of `types-redis` aims to provide accurate annotations for `redis==4.6.0`. The source for this package can be found at https://github.com/python/typeshed/tree/main/stubs/redis. All fixes for types and metadata should be contributed there. *Note:* The `redis` package includes type annotations or type stubs since version 5.0.0. Please uninstall the `types-redis` package if you use this or a newer version. This stub package is marked as [partial](https://peps.python.org/pep-0561/#partial-stub-packages). If you find that annotations are missing, feel free to contribute and help complete them. See https://github.com/python/typeshed/blob/main/README.md for more details. This package was generated from typeshed... ## AI interpretation — verify before relying Provides PEP 561 type stubs for redis 4.6.0, enabling static type checkers like mypy and pyright to validate code that uses redis. Verdict: A well-maintained, low-friction type stub package for redis 4.6.0. No known vulnerabilities and permissive licensing. However, it is superseded by redis 5.0.0+, so only install if locked to an older redis version. [View on SkillFed](https://skillfed.io/packages/types-redis) · [View on PyPI](https://pypi.org/project/types-redis/)