mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Update multiprocessing.pyi for Python3.12 (#10279)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user