forked from python/typeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
from typing import Any, SupportsIndex | ||
from typing import Any, Literal, SupportsIndex | ||
from typing_extensions import TypeAlias | ||
|
||
_UnboundOp: TypeAlias = Literal[1, 2, 3] | ||
|
||
class QueueError(RuntimeError): ... | ||
class QueueNotFoundError(QueueError): ... | ||
|
||
def bind(qid: SupportsIndex) -> None: ... | ||
def create(maxsize: SupportsIndex, fmt: SupportsIndex) -> int: ... | ||
def create(maxsize: SupportsIndex, fmt: SupportsIndex, unboundop: _UnboundOp) -> int: ... | ||
def destroy(qid: SupportsIndex) -> None: ... | ||
def get(qid: SupportsIndex) -> tuple[Any, int]: ... | ||
def get(qid: SupportsIndex) -> tuple[Any, int, _UnboundOp | None]: ... | ||
def get_count(qid: SupportsIndex) -> int: ... | ||
def get_maxsize(qid: SupportsIndex) -> int: ... | ||
def get_queue_defaults(qid: SupportsIndex) -> tuple[int]: ... | ||
def get_queue_defaults(qid: SupportsIndex) -> tuple[int, _UnboundOp]: ... | ||
def is_full(qid: SupportsIndex) -> bool: ... | ||
def list_all() -> list[tuple[int, int]]: ... | ||
def put(qid: SupportsIndex, obj: Any, fmt: SupportsIndex) -> None: ... | ||
def list_all() -> list[tuple[int, int, _UnboundOp]]: ... | ||
def put(qid: SupportsIndex, obj: Any, fmt: SupportsIndex, unboundop: _UnboundOp) -> None: ... | ||
def release(qid: SupportsIndex) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters