Skip to content
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