Assorted fixes to stubs

This commit is contained in:
Ben Darnell
2016-01-16 16:52:01 -05:00
parent 43fcb6c185
commit 3a674645a5
5 changed files with 32 additions and 4 deletions

View File

@@ -9,3 +9,12 @@ _FrameRecord = Tuple[_Frame, str, int, str, List[str], int]
def currentframe() -> _FrameRecord: ...
def stack(context: int = ...) -> List[_FrameRecord]: ...
# namedtuple('ArgSpec', 'args varargs keywords defaults')
class ArgSpec(tuple):
args = ... # type: List[str]
varargs = ... # type: str
keywords = ... # type: str
defaults = ... # type: tuple
def getargspec(func: object) -> ArgSpec: ...

View File

@@ -23,14 +23,14 @@ def crc32(data: str, value: int = ...) -> int: ...
def decompress(data: str, wbits: int = ..., bufsize: int = ...) -> str: ...
class compressobj:
def __init__(level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ...,
def __init__(self, level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ...,
strategy: int = ...) -> None: ...
def copy(self) -> "compressobj": ...
def compress(self, data: str) -> str: ...
def flush(self) -> None: ...
class decompressobj:
def __init__(wbits: int = ...) -> None: ...
def __init__(self, wbits: int = ...) -> None: ...
def copy(self) -> "decompressobj": ...
def decompress(self, data: str) -> str: ...
def decompress(self, data: str, max_length: int = ...) -> str: ...
def flush(self) -> None: ...