File: gzip.pyi

package info (click to toggle)
mypy 0.470-complete-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,864 kB
  • ctags: 3,264
  • sloc: python: 21,838; makefile: 18
file content (51 lines) | stat: -rw-r--r-- 1,494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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): ...