pydanny / refry

Refry is a modern, maintained, typed easy-to-use retry decorator.
BSD 3-Clause "New" or "Revised" License
22 stars 1 forks source link

Improve typing of decorator #4

Open pydanny opened 5 months ago

pydanny commented 5 months ago

@leontrolski suggested something on the lines of this"

F = TypeVar("F", bound=Callable[..., Any])

def retry(
    ...
) -> Callable[[F], F]: