Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/gitingest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
T = TypeVar("T")


def async_timeout(seconds: int = 60) -> Callable[..., Callable[..., Awaitable[T]]]:
def async_timeout(seconds) -> Callable[[Callable[..., Awaitable[T]]], Callable[..., Awaitable[T]]]:
"""
Async Timeout decorator.

Expand All @@ -21,11 +21,10 @@ def async_timeout(seconds: int = 60) -> Callable[..., Callable[..., Awaitable[T]
----------
seconds : int
The maximum allowed time (in seconds) for the asynchronous function to complete.
The default is 10 seconds.

Returns
-------
Callable[[Callable[P, Awaitable[T]]], Callable[P, Awaitable[T]]]
Callable[[Callable[..., Awaitable[T]]], Callable[..., Awaitable[T]]]
A decorator that, when applied to an async function, ensures the function
completes within the specified time limit. If the function takes too long,
an `AsyncTimeoutError` is raised.
Expand Down
Loading