Skip to content

Conversation

filipchristiansen
Copy link
Contributor

This PR updates the async_timeout function signature to address a Pylance warning about TypeVar usage. Specifically, the function definition has been changed from:

-def async_timeout(seconds: int = 10) -> Callable[..., Callable[..., Awaitable[T]]]:
+def async_timeout(seconds: int = 10) -> Callable[[Callable[..., Awaitable[T]]], Callable[..., Awaitable[T]]]:

@filipchristiansen filipchristiansen force-pushed the fix/async-timeout-type-annotation branch from 24ee721 to ba2f385 Compare February 17, 2025 18:11
@filipchristiansen filipchristiansen force-pushed the fix/async-timeout-type-annotation branch from ba2f385 to 46bed45 Compare February 17, 2025 18:12
@filipchristiansen filipchristiansen merged commit d3f3070 into main Feb 17, 2025
18 checks passed
@filipchristiansen filipchristiansen deleted the fix/async-timeout-type-annotation branch February 17, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants