9 class Error(Exception): ...
\r
11 REASONABLY_LARGE = ... # type: int
\r
12 LINELEN = ... # type: int
\r
13 RUNCHAR = ... # type: bytes
\r
16 def __init__(self) -> None: ...
\r
17 Type = ... # type: str
\r
18 Creator = ... # type: str
\r
19 Flags = ... # type: int
\r
21 _FileInfoTuple = Tuple[str, FInfo, int, int]
\r
22 _FileHandleUnion = Union[str, IO[bytes]]
\r
24 def getfileinfo(name: str) -> _FileInfoTuple: ...
\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
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
39 def binhex(inp: str, out: str) -> None: ...
\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
48 def hexbin(inp: str, out: str) -> None: ...
\r