diff --git a/stdlib/2and3/socket.pyi b/stdlib/2and3/socket.pyi index f016576b2..7579eba07 100644 --- a/stdlib/2and3/socket.pyi +++ b/stdlib/2and3/socket.pyi @@ -795,11 +795,12 @@ def inet_pton(address_family: int, ip_string: str) -> bytes: ... def inet_ntop(address_family: int, packed_ip: bytes) -> str: ... if sys.version_info >= (3, 9): - # flags and address appear to be unused in send_fds and recv_fds - def send_fds( - sock: socket, buffers: Iterable[bytes], fds: Union[bytes, Iterable[int]], flags: int = ..., address: None = ... - ) -> int: ... - def recv_fds(sock: socket, bufsize: int, maxfds: int, flags: int = ...) -> Tuple[bytes, List[int], int, Any]: ... + if sys.platform != "win32": + # flags and address appear to be unused in send_fds and recv_fds + def send_fds( + sock: socket, buffers: Iterable[bytes], fds: Union[bytes, Iterable[int]], flags: int = ..., address: None = ... + ) -> int: ... + def recv_fds(sock: socket, bufsize: int, maxfds: int, flags: int = ...) -> Tuple[bytes, List[int], int, Any]: ... if sys.version_info >= (3, 3): def CMSG_LEN(length: int) -> int: ... diff --git a/tests/stubtest_whitelists/py39.txt b/tests/stubtest_whitelists/py39.txt index 324d961eb..e3762906d 100644 --- a/tests/stubtest_whitelists/py39.txt +++ b/tests/stubtest_whitelists/py39.txt @@ -35,10 +35,9 @@ collections.abc.AsyncGenerator.ag_running collections.abc.ItemsView.__reversed__ collections.abc.KeysView.__reversed__ collections.abc.ValuesView.__reversed__ -concurrent.futures.ProcessPoolExecutor.shutdown -concurrent.futures.ThreadPoolExecutor.shutdown -concurrent.futures.process.ProcessPoolExecutor.shutdown -concurrent.futures.thread.ThreadPoolExecutor.shutdown +# pending merge of https://github.com/python/cpython/pull/22023 +concurrent.futures.Executor.shutdown +concurrent.futures._base.Executor.shutdown contextvars.Context.__init__ contextvars.Context.get copy.PyStringMap