massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / zlib.pyi
1 from array import array
2 from typing import Any
3
4 DEFLATED: int
5 DEF_MEM_LEVEL: int
6 MAX_WBITS: int
7 ZLIB_VERSION: str
8 Z_BEST_COMPRESSION: int
9 Z_BEST_SPEED: int
10 Z_DEFAULT_COMPRESSION: int
11 Z_DEFAULT_STRATEGY: int
12 Z_FILTERED: int
13 Z_FINISH: int
14 Z_FIXED: int
15 Z_FULL_FLUSH: int
16 Z_HUFFMAN_ONLY: int
17 Z_NO_FLUSH: int
18 Z_RLE: int
19 Z_SYNC_FLUSH: int
20 DEF_BUF_SIZE: int
21 ZLIB_RUNTIME_VERSION: str
22
23 class error(Exception): ...
24
25 class _Compress:
26     def compress(self, data: bytes) -> bytes: ...
27     def flush(self, mode: int = ...) -> bytes: ...
28     def copy(self) -> _Compress: ...
29
30 class _Decompress:
31     unused_data: bytes
32     unconsumed_tail: bytes
33     eof: bool
34     def decompress(self, data: bytes, max_length: int = ...) -> bytes: ...
35     def flush(self, length: int = ...) -> bytes: ...
36     def copy(self) -> _Decompress: ...
37
38 def adler32(__data: bytes, __value: int = ...) -> int: ...
39 def compress(__data: bytes, level: int = ...) -> bytes: ...
40 def compressobj(
41     level: int = ..., method: int = ..., wbits: int = ..., memLevel: int = ..., strategy: int = ..., zdict: bytes | None = ...
42 ) -> _Compress: ...
43 def crc32(__data: array[Any] | bytes, __value: int = ...) -> int: ...
44 def decompress(__data: bytes, wbits: int = ..., bufsize: int = ...) -> bytes: ...
45 def decompressobj(wbits: int = ..., zdict: bytes = ...) -> _Decompress: ...