multiprocessing.reduction: improve recvfds and recv_handle (#8422)

This commit is contained in:
Alex Waygood
2022-07-28 17:05:08 +01:00
committed by GitHub
parent 26d09359cf
commit a9f6632d1b

View File

@@ -1,7 +1,9 @@
import pickle
import sys
from _typeshed import HasFileno
from abc import ABCMeta
from copyreg import _DispatchTableType
from socket import socket
from typing import Any
from typing_extensions import Literal
@@ -43,9 +45,9 @@ else:
else:
ACKNOWLEDGE: Literal[False]
def recvfds(sock, size): ...
def recvfds(sock: socket, size: int) -> list[int]: ...
def send_handle(conn, handle, destination_pid) -> None: ...
def recv_handle(conn) -> None: ...
def recv_handle(conn: HasFileno) -> int: ...
def sendfds(sock, fds) -> None: ...
def DupFd(fd): ...