Skip to content

Commit d3b8a69

Browse files
Changed the type of the target key in the Details dictionary to represent an actual function (#72)
1 parent ba17664 commit d3b8a69

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Fixed
6+
7+
- 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))
8+
59
### Documentation
610

711
- 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))

backoff/_typing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# coding:utf-8
22
import logging
33
import sys
4+
from types import FunctionType
45
from typing import (
56
Any,
67
Callable,
@@ -27,7 +28,7 @@ def __init_subclass__(cls, **kwargs: Any) -> None:
2728

2829

2930
class _Details(TypedDict):
30-
target: Callable[..., Any]
31+
target: FunctionType
3132
args: Tuple[Any, ...]
3233
kwargs: Dict[str, Any]
3334
tries: int

0 commit comments

Comments
 (0)