Remove old compatibility alias _BufferWithLen (#14151)

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2025-05-27 14:38:04 +02:00
1 parent ea39b363e0
commit b01e7aa9d2
2 files changed
+2 -5

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
from _typeshed import _BufferWithLen
from _typeshed import SizedBuffer
from socket import socket
from typing import Literal, TypeVar, overload
@@ -16,7 +16,7 @@ class bytesview:
@overload
def __init__(self, data: bytes | bytesview, offset: int, size: int) -> None: ...
@overload
def __init__(self, data: _BufferWithLen, offset: int = 0, size: int | None = None) -> None: ...
def __init__(self, data: SizedBuffer, offset: int = 0, size: int | None = None) -> None: ...
@overload
def __getitem__(self, key: slice) -> bytes: ...
@overload