Stubgen gzip (and _compression)

This commit is contained in:
Ben Darnell
2016-04-10 20:23:06 -04:00
parent e2dde66eb1
commit 9fa161fe51
2 changed files with 71 additions and 0 deletions

20
stdlib/3/_compression.pyi Normal file
View File

@@ -0,0 +1,20 @@
# Stubs for _compression (Python 3.5)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import io
BUFFER_SIZE = ... # type: Any
class BaseStream(io.BufferedIOBase): ...
class DecompressReader(io.RawIOBase):
def readable(self): ...
def __init__(self, fp, decomp_factory, trailing_error=..., **decomp_args): ...
def close(self): ...
def seekable(self): ...
def readinto(self, b): ...
def read(self, size=-1): ...
def seek(self, offset, whence=...): ...
def tell(self): ...

51
stdlib/3/gzip.pyi Normal file
View File

@@ -0,0 +1,51 @@
# Stubs for gzip (Python 3.5)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import _compression
def open(filename, mode='', compresslevel=9, encoding=None, errors=None, newline=None): ...
class _PaddedFile:
file = ... # type: Any
def __init__(self, f, prepend=b''): ...
def read(self, size): ...
def prepend(self, prepend=b''): ...
def seek(self, off): ...
def seekable(self): ...
class GzipFile(_compression.BaseStream):
myfileobj = ... # type: Any
mode = ... # type: Any
name = ... # type: Any
compress = ... # type: Any
fileobj = ... # type: Any
def __init__(self, filename=None, mode=None, compresslevel=9, fileobj=None, mtime=None): ...
@property
def filename(self): ...
@property
def mtime(self): ...
crc = ... # type: Any
def write(self, data): ...
def read(self, size=-1): ...
def read1(self, size=-1): ...
def peek(self, n): ...
@property
def closed(self): ...
def close(self): ...
def flush(self, zlib_mode=...): ...
def fileno(self): ...
def rewind(self): ...
def readable(self): ...
def writable(self): ...
def seekable(self): ...
def seek(self, offset, whence=...): ...
def readline(self, size=-1): ...
class _GzipReader(_compression.DecompressReader):
def __init__(self, fp): ...
def read(self, size=-1): ...
def compress(data, compresslevel=9): ...
def decompress(data): ...