From be0d5bea8e2faa956ec077aa8968a79dd113ee40 Mon Sep 17 00:00:00 2001 From: Winston Chang Date: Tue, 25 Jun 2024 16:25:00 -0500 Subject: [PATCH] Add return type for _task() --- shiny/reactive/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiny/reactive/_core.py b/shiny/reactive/_core.py index b961cbcdc..6b4066456 100644 --- a/shiny/reactive/_core.py +++ b/shiny/reactive/_core.py @@ -346,7 +346,7 @@ def invalidate_later( # graphs from being gc'd. unsub: Optional[Callable[[], None]] = None - async def _task(ctx: Context, deadline: float): + async def _task(ctx: Context, deadline: float) -> None: nonlocal cancellable try: delay = deadline - time.monotonic()