Overhaul socket stubs on Windows and MacOS (#8106)

Reduce the `socket` allowlists for these platforms to a handful of missing constants
This commit is contained in:
Alex Waygood
2022-06-20 20:11:50 +01:00
committed by GitHub
parent 6a64e69054
commit c6de37df53
7 changed files with 494 additions and 355 deletions

View File

@@ -1,7 +1,10 @@
from socket import AF_UNIX as AF_UNIX
import sys
from typing import Any
from typing_extensions import Literal
if sys.platform != "win32":
from socket import AF_UNIX as AF_UNIX
unix_socket_available: bool
class Server: