add (overwrite with) mypy stubs, if available

This commit is contained in:
Matthias Kramm
2015-09-30 07:36:12 -07:00
parent 69e10b3aed
commit 337abed05a
432 changed files with 22360 additions and 776 deletions
+8 -14
View File
@@ -1,6 +1,6 @@
# Stubs for zlib (Python 2.7)
class error(Exception): ...
#
# NOTE: This stub was automatically generated by stubgen.
DEFLATED = ... # type: int
DEF_MEM_LEVEL = ... # type: int
@@ -19,18 +19,12 @@ Z_SYNC_FLUSH = ... # type: int
def adler32(data: str, value: int = ...) -> int: ...
def compress(data: str, level: int = ...) -> str: ...
# TODO: compressobj() returns a compress object
def compressobj(level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ...,
strategy: int = ...): ...
def crc32(data: str, value: int = ...) -> int: ...
def decompress(data: str, wbits: int = ..., bufsize: int = ...) -> str: ...
# TODO: decompressobj() returns a decompress object
def decompressobj(wbits: int = ...): ...
class compressobj:
def __init__(level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ...,
strategy: int = ...): ...
def compress(self, data: str) -> str: ...
def copy(self) -> _Compress: ...
def flush(self) -> NoneType: ...
class decompressobj:
def __init__(wbits: int = ...): ...
def copy(self) -> _Compress: ...
def decompress(self, data: str) -> str: ...
def flush(self) -> NoneType: ...
class error(Exception): ...