Skip to content

Commit 7ebff91

Browse files
authored
[socket] Revert adding proto default value in SocketType (#14549)
1 parent 2dd1ef4 commit 7ebff91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/_socket.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,10 +743,10 @@ class socket:
743743
def timeout(self) -> float | None: ... # noqa: F811
744744
if sys.platform == "win32":
745745
def __init__(
746-
self, family: int = ..., type: int = ..., proto: int = 0, fileno: SupportsIndex | bytes | None = None
746+
self, family: int = ..., type: int = ..., proto: int = ..., fileno: SupportsIndex | bytes | None = None
747747
) -> None: ...
748748
else:
749-
def __init__(self, family: int = ..., type: int = ..., proto: int = 0, fileno: SupportsIndex | None = None) -> None: ...
749+
def __init__(self, family: int = ..., type: int = ..., proto: int = ..., fileno: SupportsIndex | None = None) -> None: ...
750750

751751
def bind(self, address: _Address, /) -> None: ...
752752
def close(self) -> None: ...

0 commit comments

Comments
 (0)