Skip to content

DeprecationWarning: Call to '__init__' function with deprecated usage of input argument/s 'retry_on_timeout' #384

@jakerobers

Description

@jakerobers

Getting the following warning for version "fakeredis>=2.29.0",

.venv/lib/python3.13/site-packages/fakeredis/aioredis.py:256: DeprecationWarning: Call to '__init__' function with deprecated usage of input argument/s 'retry_on_timeout'. (TimeoutError is included by default.) -- Deprecated since version 6.0.0.
    super().__init__(**kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Deleting retry_on_timeout from the kwarg in fakeredis/aioredis.py fixes the error, however I'm not sure if applying this patch is considered a breaking change if we made that adjustment (i.e. folks depending on older redis versions might find some incompatibility).

Going to ignore this warning for now in my pytest.ini, but is probably a fix to consider in future releases of this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions