mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-02 17:43:25 +08:00
Some ssl fixes (#919)
Fix return of wrap_socket. Add read, write, pending to SSLSocket Fix argument to socket.setdefaulttimeout
This commit is contained in:
committed by
Guido van Rossum
parent
06074e1e02
commit
6eca1a04da
@@ -229,7 +229,7 @@ class SSLContext:
|
||||
def wrap_socket(self, sock: socket.socket, server_side: bool = ...,
|
||||
do_handshake_on_connect: bool = ...,
|
||||
suppress_ragged_eofs: bool = ...,
|
||||
server_hostname: Optional[str] = ...) -> 'SSLContext': ...
|
||||
server_hostname: Optional[str] = ...) -> SSLSocket: ...
|
||||
if sys.version_info >= (3, 5):
|
||||
def wrap_bio(self, incoming: 'MemoryBIO', outgoing: 'MemoryBIO',
|
||||
server_side: bool = ...,
|
||||
|
||||
Reference in New Issue
Block a user