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 authored and GitHub committed 2022-06-20 20:11:50 +01:00
1 parent 6a64e69054
commit c6de37df53
7 files changed
+494 -355

No files matched your search

+4 -1
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: