Add timeout attribute to _socket.socket (#6607)

This commit is contained in:
Alex Waygood
2021-12-16 12:50:43 +00:00
committed by GitHub
parent f6e3bd19f3
commit c164d21225

View File

@@ -527,6 +527,8 @@ class socket:
family: int
type: int
proto: int
@property
def timeout(self) -> float | None: ...
def __init__(self, family: int = ..., type: int = ..., proto: int = ..., fileno: _FD | None = ...) -> None: ...
def bind(self, __address: _Address | bytes) -> None: ...
def close(self) -> None: ...