massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / binascii.pyi
1 import sys
2
3 def a2b_uu(__data: str | bytes) -> bytes: ...
4
5 if sys.version_info >= (3, 7):
6     def b2a_uu(__data: bytes, *, backtick: bool = ...) -> bytes: ...
7
8 else:
9     def b2a_uu(__data: bytes) -> bytes: ...
10
11 def a2b_base64(__data: str | bytes) -> bytes: ...
12 def b2a_base64(__data: bytes, *, newline: bool = ...) -> bytes: ...
13 def a2b_qp(data: str | bytes, header: bool = ...) -> bytes: ...
14 def b2a_qp(data: bytes, quotetabs: bool = ..., istext: bool = ..., header: bool = ...) -> bytes: ...
15 def a2b_hqx(__data: str | bytes) -> bytes: ...
16 def rledecode_hqx(__data: bytes) -> bytes: ...
17 def rlecode_hqx(__data: bytes) -> bytes: ...
18 def b2a_hqx(__data: bytes) -> bytes: ...
19 def crc_hqx(__data: bytes, __crc: int) -> int: ...
20 def crc32(__data: bytes, __crc: int = ...) -> int: ...
21 def b2a_hex(__data: bytes) -> bytes: ...
22
23 if sys.version_info >= (3, 8):
24     def hexlify(data: bytes, sep: str | bytes = ..., bytes_per_sep: int = ...) -> bytes: ...
25
26 else:
27     def hexlify(__data: bytes) -> bytes: ...
28
29 def a2b_hex(__hexstr: str | bytes) -> bytes: ...
30 def unhexlify(__hexstr: str | bytes) -> bytes: ...
31
32 class Error(ValueError): ...
33 class Incomplete(Exception): ...