This commit is contained in:
wittmannzl103469 committed 2026-11-05 15:08:42 +01:00
1 parent de41a02749
commit 9af09cebd3
764 files changed
+54218 -78859

No files matched your search

@@ -1,27 +1,15 @@
import sys
from typing import Any
from typing import Any, Dict, overload
class BufferProxy:
@property
def parent(self) -> Any: ...
@property
def length(self) -> int: ...
@property
def raw(self) -> bytes: ...
parent: Any
length: int
raw: bytes
# possibly going to be deprecated/removed soon, in which case these
# typestubs must be removed too
@property
def __array_interface__(self) -> dict[str, Any]: ...
@property
def __array_struct__(self) -> Any: ...
if sys.version_info >= (3, 12):
def __buffer__(self, flags: int, /) -> memoryview[int]: ...
def __release_buffer__(self, view: memoryview[int], /) -> None: ...
def __new__(
cls, parent: Any
) -> BufferProxy: ... # TODO: parent: TypedDict | Protocol
def write(
self,
buffer: str | bytes, # Any "read-only bytes-like-object" is valid
offset: int = 0,
) -> None: ...
__array_interface__: Dict[str, Any]
__array_struct__: Any
@overload
def __init__(self) -> None: ...
@overload
def __init__(self, parent: Any) -> None: ...
def write(self, buffer: bytes, offset: int = 0) -> None: ...