Update multiprocessing.pyi for Python3.12 (#10279)

This commit is contained in:
Nikita Sobolev
2023-06-08 10:37:44 +03:00
committed by GitHub
parent 23bb0494ab
commit 8528888691
3 changed files with 8 additions and 3 deletions

View File

@@ -52,7 +52,12 @@ class Listener:
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, exc_tb: types.TracebackType | None
) -> None: ...
def deliver_challenge(connection: Connection, authkey: bytes) -> None: ...
if sys.version_info >= (3, 12):
def deliver_challenge(connection: Connection, authkey: bytes, digest_name: str = "sha256") -> None: ...
else:
def deliver_challenge(connection: Connection, authkey: bytes) -> None: ...
def answer_challenge(connection: Connection, authkey: bytes) -> None: ...
def wait(
object_list: Iterable[Connection | socket.socket | int], timeout: float | None = None

View File

@@ -22,6 +22,8 @@ class Queue(Generic[_T]):
def close(self) -> None: ...
def join_thread(self) -> None: ...
def cancel_join_thread(self) -> None: ...
if sys.version_info >= (3, 12):
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
class JoinableQueue(Queue[_T]):
def task_done(self) -> None: ...