version = "4.6.0"
upstream_repository = "https://github.com/redis/redis-py"
# Requires a version of cryptography with a `py.typed` file
requires = ["cryptography>=35.0.0", "types-pyOpenSSL"]
partial_stub = true
# While upstream added a py.typed file, the upstream annotations are rather
# incomplete. By using "obsolete_since" we recommend deinstalling this
# package, which isn't the best idea at the moment.
# obsolete_since = "5.0.0" # Released on 2023-08-15
extra_description = """\
    Note: Redis-py 5.0.0 added a py.typed file, but the inline annotations \
    are incomplete. Continuing to use `types-redis` for the time being may \
    lead to superior results.\
    """

[tool.stubtest]
ignore_missing_stub = true
# The runtime has an undeclared dependency on setuptools
stubtest_requirements = ["setuptools"]
extras = ["ocsp"]
