Skip to content

Commit 46bed45

Browse files
cyclotrucfilipchristiansen
authored andcommitted
increase timeout to 60 seconds
1 parent e8dbb49 commit 46bed45

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/gitingest/utils.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
T = TypeVar("T")
1010

1111

12-
def async_timeout(seconds: int = 60) -> Callable[..., Callable[..., Awaitable[T]]]:
12+
def async_timeout(seconds) -> Callable[[Callable[..., Awaitable[T]]], Callable[..., Awaitable[T]]]:
1313
"""
1414
Async Timeout decorator.
1515
@@ -21,11 +21,10 @@ def async_timeout(seconds: int = 60) -> Callable[..., Callable[..., Awaitable[T]
2121
----------
2222
seconds : int
2323
The maximum allowed time (in seconds) for the asynchronous function to complete.
24-
The default is 10 seconds.
2524
2625
Returns
2726
-------
28-
Callable[[Callable[P, Awaitable[T]]], Callable[P, Awaitable[T]]]
27+
Callable[[Callable[..., Awaitable[T]]], Callable[..., Awaitable[T]]]
2928
A decorator that, when applied to an async function, ensures the function
3029
completes within the specified time limit. If the function takes too long,
3130
an `AsyncTimeoutError` is raised.

0 commit comments

Comments
 (0)