mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-26 12:09:02 +00:00

It would allow interning profiling-related QSTRs in debug emulator builds. [no changelog]
17 lines
385 B
Python
17 lines
385 B
Python
class FileIO:
|
|
def __enter__(self) -> FileIO: ...
|
|
|
|
def __exit__(*args) -> None: ...
|
|
|
|
def write(self, data: bytes | str) -> int: ...
|
|
|
|
class StringIO:
|
|
def __init__(self, _: Union[int, str]) -> None: ...
|
|
|
|
class BytesIO:
|
|
def __init__(self, _: Union[int, bytes]) -> None: ...
|
|
def getvalue(self) -> bytes: ...
|
|
|
|
def open(name: str, mode: str = ...) -> FileIO:
|
|
pass
|