inyutin/aiohttp_retry

The module always prints deprecation warning into the logs on import

mykola-mokhnach opened this issue · 2 comments

The warning looks like:

../../../root/.local/share/virtualenvs/service/lib/python3.7/site-packages/aiohttp_retry/__init__.py:74
118../../../root/.local/share/virtualenvs/service/lib/python3.7/site-packages/aiohttp_retry/__init__.py:74
119  /root/.local/share/virtualenvs/service/lib/python3.7/site-packages/aiohttp_retry/__init__.py:74: UserWarning: RetryOptions is deprecated, use ExponentialRetry
120    warn("RetryOptions is deprecated, use ExponentialRetry")
121-- Docs: https://docs.pytest.org/en/stable/warnings.html

I assume this is happening on module import because of the defaults in the class constructor:

class RetryClient:
    def __init__(
        self,
        logger: Optional[_Logger] = None,
        retry_options: RetryOptionsBase = RetryOptions(),  # <<<
        *args: Any, **kwargs: Any
    ) -> None:

Module version used in the project: 2.3
Python version: 3.7

Please, use v2.3.1, everything should be fine.

Thanks for fixing it