Skip to content

Commit 3cfcafe

Browse files
committed
Add basic stub file for native_internal
1 parent c71fef0 commit 3cfcafe

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

mypyc/lib-rt/native_internal.pyi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Buffer:
2+
def __init__(self, source: bytes | None = None, /) -> None: ...
3+
def getvalue(self) -> bytes: ...
4+
5+
def write_bool(data: Buffer, value: bool, /) -> None: ...
6+
def read_bool(data: Buffer, /) -> bool: ...
7+
def write_str(data: Buffer, value: str, /) -> None: ...
8+
def read_str(data: Buffer, /) -> str: ...
9+
def write_float(data: Buffer, value: float, /) -> None: ...
10+
def read_float(data: Buffer, /) -> float: ...
11+
def write_int(data: Buffer, value: int, /) -> None: ...
12+
def read_int(data: Buffer, /): ...
13+
def write_tag(data: Buffer, value: int, /) -> None: ...
14+
def read_tag(data: Buffer, /): ...

0 commit comments

Comments
 (0)