mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 17:18:30 +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,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