From 4a8635d1066c0756d251bb3e0630ec1222db6f7f Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Sat, 26 Jul 2025 14:33:19 +0000 Subject: [PATCH] [threading] Add missing default values (#14458) --- stdlib/_thread.pyi | 2 +- stdlib/threading.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/_thread.pyi b/stdlib/_thread.pyi index 9cfbe55b4..970130dfb 100644 --- a/stdlib/_thread.pyi +++ b/stdlib/_thread.pyi @@ -73,7 +73,7 @@ def start_new(function: Callable[[Unpack[_Ts]], object], args: tuple[Unpack[_Ts] def start_new(function: Callable[..., object], args: tuple[Any, ...], kwargs: dict[str, Any], /) -> int: ... if sys.version_info >= (3, 10): - def interrupt_main(signum: signal.Signals = ..., /) -> None: ... + def interrupt_main(signum: signal.Signals = signal.SIGINT, /) -> None: ... else: def interrupt_main() -> None: ... diff --git a/stdlib/threading.pyi b/stdlib/threading.pyi index d31351754..033cad393 100644 --- a/stdlib/threading.pyi +++ b/stdlib/threading.pyi @@ -142,7 +142,7 @@ class Condition: def __exit__( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None ) -> None: ... - def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ... + def acquire(self, blocking: bool = True, timeout: float = -1) -> bool: ... def release(self) -> None: ... def wait(self, timeout: float | None = None) -> bool: ... def wait_for(self, predicate: Callable[[], _T], timeout: float | None = None) -> _T: ...