massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / binhex.pyi
1 from typing import IO, Any, Tuple, Union
2
3 class Error(Exception): ...
4
5 REASONABLY_LARGE: int
6 LINELEN: int
7 RUNCHAR: bytes
8
9 class FInfo:
10     def __init__(self) -> None: ...
11     Type: str
12     Creator: str
13     Flags: int
14
15 _FileInfoTuple = Tuple[str, FInfo, int, int]
16 _FileHandleUnion = Union[str, IO[bytes]]
17
18 def getfileinfo(name: str) -> _FileInfoTuple: ...
19
20 class openrsrc:
21     def __init__(self, *args: Any) -> None: ...
22     def read(self, *args: Any) -> bytes: ...
23     def write(self, *args: Any) -> None: ...
24     def close(self) -> None: ...
25
26 class BinHex:
27     def __init__(self, name_finfo_dlen_rlen: _FileInfoTuple, ofp: _FileHandleUnion) -> None: ...
28     def write(self, data: bytes) -> None: ...
29     def close_data(self) -> None: ...
30     def write_rsrc(self, data: bytes) -> None: ...
31     def close(self) -> None: ...
32
33 def binhex(inp: str, out: str) -> None: ...
34
35 class HexBin:
36     def __init__(self, ifp: _FileHandleUnion) -> None: ...
37     def read(self, *n: int) -> bytes: ...
38     def close_data(self) -> None: ...
39     def read_rsrc(self, *n: int) -> bytes: ...
40     def close(self) -> None: ...
41
42 def hexbin(inp: str, out: str) -> None: ...