mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 14:00:12 +08:00
[ssl] Deprecate read and write methods (#15285)
This commit is contained in:
@@ -291,7 +291,9 @@ class SSLSocket(socket.socket):
|
||||
@overload
|
||||
def sendto(self, data: ReadableBuffer, flags_or_addr: int, addr: socket._Address) -> int: ...
|
||||
def shutdown(self, how: int) -> None: ...
|
||||
@deprecated("Deprecated since Python 3.6. Use `SSLSocket.recv` method instead.")
|
||||
def read(self, len: int = 1024, buffer: bytearray | None = None) -> bytes: ...
|
||||
@deprecated("Deprecated since Python 3.6. Use `SSLSocket.send` method instead.")
|
||||
def write(self, data: ReadableBuffer) -> int: ...
|
||||
def do_handshake(self, block: bool = False) -> None: ... # block is undocumented
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user