Skip to content

Commit 582f08b

Browse files
authored
Add _interpqueues for 3.13 (#12240)
1 parent 311612e commit 582f08b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

stdlib/VERSIONS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ _dummy_threading: 3.0-3.8
3535
_heapq: 3.0-
3636
_imp: 3.0-
3737
_interpchannels: 3.13-
38+
_interpqueues: 3.13-
3839
_interpreters: 3.13-
3940
_json: 3.0-
4041
_locale: 3.0-

stdlib/_interpqueues.pyi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from typing import Any, SupportsIndex
2+
3+
class QueueError(RuntimeError): ...
4+
class QueueNotFoundError(QueueError): ...
5+
6+
def bind(qid: SupportsIndex) -> None: ...
7+
def create(maxsize: SupportsIndex, fmt: SupportsIndex) -> int: ...
8+
def destroy(qid: SupportsIndex) -> None: ...
9+
def get(qid: SupportsIndex) -> tuple[Any, int]: ...
10+
def get_count(qid: SupportsIndex) -> int: ...
11+
def get_maxsize(qid: SupportsIndex) -> int: ...
12+
def get_queue_defaults(qid: SupportsIndex) -> tuple[int]: ...
13+
def is_full(qid: SupportsIndex) -> bool: ...
14+
def list_all() -> list[tuple[int, int]]: ...
15+
def put(qid: SupportsIndex, obj: Any, fmt: SupportsIndex) -> None: ...
16+
def release(qid: SupportsIndex) -> None: ...

0 commit comments

Comments
 (0)