[asyncio] Allow any memoryview in write() and writelines() (#13519)

This commit is contained in:
Sam Bull
2025-03-20 16:49:10 +00:00
committed by GitHub
parent 6712f7fc3a
commit b4e49dd521
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ class _SSLProtocolTransport(transports._FlowControlMixin, transports.Transport):
def get_extra_info(self, name: str, default: Any | None = None) -> dict[str, Any]: ...
@property
def _protocol_paused(self) -> bool: ...
def write(self, data: bytes | bytearray | memoryview) -> None: ...
def write(self, data: bytes | bytearray | memoryview[Any]) -> None: ... # any memoryview format or shape
def can_write_eof(self) -> Literal[False]: ...
if sys.version_info >= (3, 11):
def get_write_buffer_limits(self) -> tuple[int, int]: ...