diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d72ce9..503409e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Fixed + +- Changed the type of the `target` key in the `Details` dictionary to represent an actual function [#72](https://github.com/python-backoff/backoff/pull/72) (from [@edgarrmondragon](https://github.com/edgarrmondragon)) + ### Documentation - Switch to [Zensical for building the documentation](https://zensical.org/) [#62](https://github.com/python-backoff/backoff/pull/62) (from [@edgarrmondragon](https://github.com/edgarrmondragon)) diff --git a/backoff/_typing.py b/backoff/_typing.py index 99d2e9e..0e30e37 100644 --- a/backoff/_typing.py +++ b/backoff/_typing.py @@ -1,6 +1,7 @@ # coding:utf-8 import logging import sys +from types import FunctionType from typing import ( Any, Callable, @@ -27,7 +28,7 @@ def __init_subclass__(cls, **kwargs: Any) -> None: class _Details(TypedDict): - target: Callable[..., Any] + target: FunctionType args: Tuple[Any, ...] kwargs: Dict[str, Any] tries: int