Erste Version

This commit is contained in:
wittmannzl103469 committed 2026-11-04 21:01:26 +01:00
commit 782b1850a3
1641 files changed
+512713

No files matched your search

@@ -0,0 +1,27 @@
import sys
from typing import Any
class BufferProxy:
@property
def parent(self) -> Any: ...
@property
def length(self) -> int: ...
@property
def raw(self) -> 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: ...