Skip to content

Commit e5bab16

Browse files
authored
Update interpchannels for 3.13 beta 4 (#12411)
1 parent 2909053 commit e5bab16

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stdlib/_interpchannels.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from _typeshed import structseq
2-
from typing import Final, Literal, SupportsIndex, final
2+
from typing import Any, Final, Literal, SupportsIndex, final
33
from typing_extensions import Buffer, Self
44

55
class ChannelError(RuntimeError): ...
@@ -72,13 +72,15 @@ class ChannelInfo(structseq[int], tuple[bool, bool, bool, int, int, int, int, in
7272
@property
7373
def send_released(self) -> bool: ...
7474

75-
def create() -> ChannelID: ...
75+
def create(unboundop: Literal[1, 2, 3]) -> ChannelID: ...
7676
def destroy(cid: SupportsIndex) -> None: ...
7777
def list_all() -> list[ChannelID]: ...
7878
def list_interpreters(cid: SupportsIndex, *, send: bool) -> list[int]: ...
7979
def send(cid: SupportsIndex, obj: object, *, blocking: bool = True, timeout: float | None = None) -> None: ...
8080
def send_buffer(cid: SupportsIndex, obj: Buffer, *, blocking: bool = True, timeout: float | None = None) -> None: ...
81-
def recv(cid: SupportsIndex, default: object = ...) -> object: ...
81+
def recv(cid: SupportsIndex, default: object = ...) -> tuple[Any, Literal[1, 2, 3]]: ...
8282
def close(cid: SupportsIndex, *, send: bool = False, recv: bool = False) -> None: ...
83+
def get_count(cid: SupportsIndex) -> int: ...
8384
def get_info(cid: SupportsIndex) -> ChannelInfo: ...
85+
def get_channel_defaults(cid: SupportsIndex) -> Literal[1, 2, 3]: ...
8486
def release(cid: SupportsIndex, *, send: bool = False, recv: bool = False, force: bool = False) -> None: ...

0 commit comments

Comments
 (0)