mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-06 04:08:49 +08:00
multiprocessing.reduction: improve recvfds and recv_handle (#8422)
This commit is contained in:
1 parent
26d09359cf
commit
a9f6632d1b
1 file changed
+4
-2
@@ -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): ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user