Skip to content

Commit 72bf6c0

Browse files
authored
[stdlib] Add locked method threading.Condition
1 parent cc79232 commit 72bf6c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/threading.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ class Condition:
144144
) -> None: ...
145145
def acquire(self, blocking: bool = True, timeout: float = -1) -> bool: ...
146146
def release(self) -> None: ...
147+
if sys.version_info >= (3, 14):
148+
def locked(self) -> bool: ...
147149
def wait(self, timeout: float | None = None) -> bool: ...
148150
def wait_for(self, predicate: Callable[[], _T], timeout: float | None = None) -> _T: ...
149151
def notify(self, n: int = 1) -> None: ...

0 commit comments

Comments
 (0)