Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion stdlib/@tests/stubtest_allowlists/py314.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ multiprocessing.managers._BaseDictProxy.__reversed__
multiprocessing.managers._BaseDictProxy.__ror__
multiprocessing.managers._BaseDictProxy.fromkeys
multiprocessing.process.BaseProcess.interrupt
multiprocessing.synchronize.SemLock.locked


# =========================
Expand Down
3 changes: 3 additions & 0 deletions stdlib/multiprocessing/synchronize.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import threading
from collections.abc import Callable
from multiprocessing.context import BaseContext
Expand Down Expand Up @@ -45,6 +46,8 @@ class SemLock:
# These methods are copied from the wrapped _multiprocessing.SemLock object
def acquire(self, block: bool = True, timeout: float | None = None) -> bool: ...
def release(self) -> None: ...
if sys.version_info >= (3, 14):
def locked(self) -> bool: ...

class Lock(SemLock):
def __init__(self, *, ctx: BaseContext) -> None: ...
Expand Down