# Stubs for zlib import sys DEFLATED = ... # type: int DEF_MEM_LEVEL = ... # type: int MAX_WBITS = ... # type: int ZLIB_VERSION = ... # type: str Z_BEST_COMPRESSION = ... # type: int Z_BEST_SPEED = ... # type: int Z_DEFAULT_COMPRESSION = ... # type: int Z_DEFAULT_STRATEGY = ... # type: int Z_FILTERED = ... # type: int Z_FINISH = ... # type: int Z_FULL_FLUSH = ... # type: int Z_HUFFMAN_ONLY = ... # type: int Z_NO_FLUSH = ... # type: int Z_SYNC_FLUSH = ... # type: int if sys.version_info >= (3,): DEF_BUF_SIZE = ... # type: int ZLIB_RUNTIME_VERSION = ... # type: str class error(Exception): ... class _Compress: def compress(self, data: bytes) -> bytes: ... def flush(self, mode: int = ...) -> bytes: ... def copy(self) -> _Compress: ... class _Decompress: unused_data = ... # type: bytes unconsumed_tail = ... # type: bytes if sys.version_info >= (3,): eof = ... # type: bool def decompress(self, data: bytes, max_length: int = ...) -> bytes: ... def flush(self, length: int = ...) -> bytes: ... def copy(self) -> _Decompress: ... def adler32(data: bytes, value: int = ...) -> int: ... def compress(data: bytes, level: int = ...) -> bytes: ... if sys.version_info >= (3,): def compressobj(level: int = ..., method: int = ..., wbits: int = ..., memLevel: int = ..., strategy: int = ..., zdict: bytes = ...) -> _Compress: ... else: def compressobj(level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ..., strategy: int = ...) -> _Compress: ... def crc32(data: bytes, value: int = ...) -> int: ... def decompress(data: bytes, wbits: int = ..., bufsize: int = ...) -> bytes: ... if sys.version_info >= (3,): def decompressobj(wbits: int = ..., zdict: bytes = ...) -> _Decompress: ... else: def decompressobj(wbits: int = ...) -> _Decompress: ...