Skip to content

Commit 24ee721

Browse files
Fix Pylance TypeVar usage warning by refining async_timeout signature
1 parent b227748 commit 24ee721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitingest/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
T = TypeVar("T")
1010

1111

12-
def async_timeout(seconds: int = 10) -> Callable[..., Callable[..., Awaitable[T]]]:
12+
def async_timeout(seconds: int = 10) -> Callable[[Callable[..., Awaitable[T]]], Callable[..., Awaitable[T]]]:
1313
"""
1414
Async Timeout decorator.
1515

0 commit comments

Comments
 (0)