mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 05:22:23 +08:00
42
stdlib/2/zlib.pyi
Normal file
42
stdlib/2/zlib.pyi
Normal file
@@ -0,0 +1,42 @@
|
||||
# Stubs for zlib (Python 2.7)
|
||||
|
||||
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
|
||||
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
|
||||
class Compress:
|
||||
def compress(self, data: str) -> str: ...
|
||||
def flush(self) -> str: ...
|
||||
def copy(self) -> "Compress": ...
|
||||
|
||||
|
||||
class Decompress:
|
||||
unused_data = ... # type: str
|
||||
unconsumed_tail = ... # type: str
|
||||
def decompress(self, data: str, max_length: int = ...) -> str: ...
|
||||
def flush(self) -> str: ...
|
||||
def copy(self) -> "Decompress": ...
|
||||
|
||||
|
||||
def adler32(data: str, value: int = ...) -> int: ...
|
||||
def compress(data: str, level: int = ...) -> str: ...
|
||||
def compressobj(level: int = ..., method: int = ..., wbits: int = ...,
|
||||
memlevel: int = ..., strategy: int = ...) -> Compress: ...
|
||||
def crc32(data: str, value: int = ...) -> int: ...
|
||||
def decompress(data: str, wbits: int = ..., bufsize: int = ...) -> str: ...
|
||||
def decompressobj(wbits: int = ...) -> Decompress: ...
|
||||
Reference in New Issue
Block a user