Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update multiprocessing.pyi for Python3.12 #10279

Merged
merged 3 commits into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion stdlib/multiprocessing/connection.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions stdlib/multiprocessing/queues.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
2 changes: 0 additions & 2 deletions tests/stubtest_allowlists/py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ logging.Logger.getChildren
logging.__all__
logging.getHandlerByName
logging.getHandlerNames
multiprocessing.connection.deliver_challenge
multiprocessing.queues.Queue.__class_getitem__
ntpath.__all__
ntpath.isjunction
ntpath.splitroot
Expand Down