mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Add timeout attribute to _socket.socket (#6607)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user