Skip to content

Commit 281be89

Browse files
authored
[stdlib] Add interrupt method for multiprocessing.Process (#15064)
1 parent 050ec19 commit 281be89

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ multiprocessing.managers._BaseDictProxy.__or__
1111
multiprocessing.managers._BaseDictProxy.__reversed__
1212
multiprocessing.managers._BaseDictProxy.__ror__
1313
multiprocessing.managers._BaseDictProxy.fromkeys
14-
multiprocessing.process.BaseProcess.interrupt
1514

1615

1716
# =========================

stdlib/multiprocessing/process.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from collections.abc import Callable, Iterable, Mapping
23
from typing import Any
34

@@ -20,6 +21,9 @@ class BaseProcess:
2021
) -> None: ...
2122
def run(self) -> None: ...
2223
def start(self) -> None: ...
24+
if sys.version_info >= (3, 14):
25+
def interrupt(self) -> None: ...
26+
2327
def terminate(self) -> None: ...
2428
def kill(self) -> None: ...
2529
def close(self) -> None: ...

0 commit comments

Comments
 (0)