mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
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:
1 parent
6a64e69054
commit
c6de37df53
7 files changed
+494
-355
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user