The module always prints deprecation warning into the logs on import
mykola-mokhnach opened this issue · 2 comments
mykola-mokhnach commented
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
inyutin commented
Please, use v2.3.1, everything should be fine.
mykola-mokhnach commented
Thanks for fixing it