diff --git a/CHANGELOG.md b/CHANGELOG.md index 44dbc8d..2c2f74f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,16 @@ ## Unreleased -- Adapt test cases to pytest-asyncio 1.0 compatibility https://github.com/python-backoff/backoff/pull/1 +### Fixed + - Use `inspect.iscoroutinefunction` instead of `asyncio.iscoroutinefunction` to avoid Python 3.14 deprecation warning https://github.com/python-backoff/backoff/pull/3 -- Use uv for dependencies and packaging https://github.com/python-backoff/backoff/pull/7 +- Adapt test cases to pytest-asyncio 1.0 compatibility https://github.com/python-backoff/backoff/pull/1 from @pastalian - Include tests in source distribution https://github.com/python-backoff/backoff/pull/13 +- Added `logging.LoggerAdapter` to `_MaybeLogger` union https://github.com/python-backoff/backoff/pull/34 from @jcbertin + +### Packaging + +- Use uv for dependencies and packaging https://github.com/python-backoff/backoff/pull/7 ## [v2.2.1] - 2022-10-05 diff --git a/backoff/_typing.py b/backoff/_typing.py index 20446d4..3f61caa 100644 --- a/backoff/_typing.py +++ b/backoff/_typing.py @@ -38,7 +38,7 @@ class Details(_Details, total=False): ] _Jitterer = Callable[[float], float] _MaybeCallable = Union[T, Callable[[], T]] -_MaybeLogger = Union[str, logging.Logger, None] +_MaybeLogger = Union[str, logging.Logger, logging.LoggerAdapter, None] _MaybeSequence = Union[T, Sequence[T]] _Predicate = Callable[[T], bool] _WaitGenerator = Callable[..., Generator[float, None, None]]