Skip to content

Commit

Permalink
typing: fix aretry typing to match docstring (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjchee authored Oct 10, 2023
1 parent cf6ebcd commit cc3567e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion asynq/tools.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ from typing import (
List,
Optional,
Tuple,
Type,
TypeVar,
Union,
overload,
)

Expand Down Expand Up @@ -62,7 +64,9 @@ def alru_cache(
) -> _AsyncWrapper: ...
def alazy_constant(ttl: int = ...) -> Callable[..., Any]: ...
def aretry(
exception_cls: type, max_tries: int = ..., sleep: float = ...
exception_cls: Union[Type[BaseException], Tuple[Type[BaseException], ...]],
max_tries: int = ...,
sleep: float = ...,
) -> Callable[..., Any]: ...
@asynq()
def call_with_context(
Expand Down

0 comments on commit cc3567e

Please sign in to comment.