From e604590cbd8a56fe94a109b5a1f943bccce244ca Mon Sep 17 00:00:00 2001 From: Hashem Date: Mon, 16 Sep 2024 14:29:48 -0400 Subject: [PATCH] Add 'abandon_on_cancel' to to_thread.run_sync A new parameter name was added https://trio.readthedocs.io/en/stable/history.html#id15 --- trio-stubs/to_thread.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/trio-stubs/to_thread.pyi b/trio-stubs/to_thread.pyi index 570df91..94e0bda 100644 --- a/trio-stubs/to_thread.pyi +++ b/trio-stubs/to_thread.pyi @@ -10,6 +10,7 @@ def current_default_thread_limiter() -> trio.CapacityLimiter: ... async def run_sync( sync_fn: Union[Callable[..., _T], Callable[[VarArg()], _T]], *args: Any, + abandon_on_cancel: bool = False, cancellable: bool = False, limiter: Optional[trio.CapacityLimiter] = None, ) -> _T: ...