Skip to content

Commit 4a8635d

Browse files
authored
[threading] Add missing default values (#14458)
1 parent 2c10360 commit 4a8635d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/_thread.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def start_new(function: Callable[[Unpack[_Ts]], object], args: tuple[Unpack[_Ts]
7373
def start_new(function: Callable[..., object], args: tuple[Any, ...], kwargs: dict[str, Any], /) -> int: ...
7474

7575
if sys.version_info >= (3, 10):
76-
def interrupt_main(signum: signal.Signals = ..., /) -> None: ...
76+
def interrupt_main(signum: signal.Signals = signal.SIGINT, /) -> None: ...
7777

7878
else:
7979
def interrupt_main() -> None: ...

stdlib/threading.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class Condition:
142142
def __exit__(
143143
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
144144
) -> None: ...
145-
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
145+
def acquire(self, blocking: bool = True, timeout: float = -1) -> bool: ...
146146
def release(self) -> None: ...
147147
def wait(self, timeout: float | None = None) -> bool: ...
148148
def wait_for(self, predicate: Callable[[], _T], timeout: float | None = None) -> _T: ...

0 commit comments

Comments
 (0)