[socket] Make socketpair not support type: SocketType (#15284)

This commit is contained in:
Ganden Schaffner
2026-01-14 23:39:35 -08:00
committed by GitHub
parent 3789c36681
commit fd895f7819
+1 -1
View File
@@ -1409,7 +1409,7 @@ if sys.platform == "win32":
else:
def socketpair(
family: int | AddressFamily | None = None, type: SocketType | int = ..., proto: int = 0
family: int | AddressFamily | None = None, type: SocketKind | int = ..., proto: int = 0
) -> tuple[socket, socket]: ...
class SocketIO(RawIOBase):