mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-15 22:40:16 +00:00
Create io.pyi
This commit is contained in:
parent
2684038ccf
commit
0c004a9a16
17
include/typings/io.pyi
Normal file
17
include/typings/io.pyi
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
class FileIO:
|
||||
def __new__(cls, file: str, mode: str) -> "FileIO": ...
|
||||
|
||||
def __enter__(self) -> "FileIO": ...
|
||||
def __exit__(self) -> None: ...
|
||||
|
||||
def read(self, size: int | None = None) -> bytes: ...
|
||||
def write(self, data: bytes) -> int: ...
|
||||
def close(self) -> None: ...
|
||||
def tell(self) -> int: ...
|
||||
def seek(self, offset: int, whence: int) -> None: ...
|
||||
def flush(self) -> None: ...
|
||||
|
||||
SEEK_SET: int
|
||||
SEEK_CUR: int
|
||||
SEEK_END: int
|
||||
Loading…
x
Reference in New Issue
Block a user