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