asyncio.sslproto: More updates for py311 (#8022)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Alex Waygood
2022-06-06 23:12:22 +01:00
committed by GitHub
parent 7322acbb97
commit 9db96967cc
3 changed files with 62 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
import sys
from _typeshed import ReadableBuffer
from asyncio import transports
from typing import Any
@@ -19,7 +20,7 @@ class Protocol(BaseProtocol):
if sys.version_info >= (3, 7):
class BufferedProtocol(BaseProtocol):
def get_buffer(self, sizehint: int) -> bytearray: ...
def get_buffer(self, sizehint: int) -> ReadableBuffer: ...
def buffer_updated(self, nbytes: int) -> None: ...
def eof_received(self) -> bool | None: ...