Changelog

8.0.1

Bug Fixes

  • Fix after_log logger format: function name was used with delay formatting.

8.0.0

New Features

  • Add retry_if_not_exception_type() that allows to retry if a raised exception doesn’t match given exceptions.

  • Most part of the code is type annotated.

  • Python 3.10 support has been added.

  • Add a __repr__ method to RetryCallState objects for easier debugging.

Upgrade Notes

  • Removed BaseRetrying.call: was long time deprecated and produced DeprecationWarning

  • Removed BaseRetrying.fn: was noted as deprecated

  • API change: BaseRetrying.begin() do not require arguments anymore as it not setting BaseRetrying.fn

Bug Fixes

  • Fix issue #288 : __name__ and other attributes for async functions

  • Use str.format to format the logs internally to make logging compatible with other logger such as loguru.

Other Notes

  • Use black for code formatting and validate using black –check. Code compatibility: py26-py39.

  • Enforce maximal line length to 120 symbols

  • Add type annotations to cover all public API.

  • Do not package tests with tenacity.

  • Drop support for deprecated Python versions (2.7 and 3.5)

  • Corrected the PyPI-published wheel tag to match the metadata saying that the release is Python 3 only.

6.3.0

Other Notes

  • Unit tests can now mock nap.sleep() for testing in all tenacity usage styles

6.2.0

New Features

  • Add an exc_info option to the before_sleep_log() strategy.

5.1.0

New Features

  • Add reno (changelog system)