With [v8.5.0](https://github.com/jd/tenacity/releases/tag/8.5.0), the `statistics` object moved from `wrapped_function.retry.statistics` to `wrapped_function.statistics`. This is a breaking change to the API and thus needs to be a major version update imo. I'd suggest to add a fallback reference to the wrapped function in order to remove the breaking change.