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 (41 lines) | stat: -rw-r--r-- 1,297 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
# Stubs for gzip (Python 2)
#
# NOTE: Based on a dynamically typed stub automatically generated by stubgen.

from typing import Any, IO
import io

class GzipFile(io.BufferedIOBase):
    myfileobj = ...  # type: Any
    max_read_chunk = ...  # type: Any
    mode = ...  # type: Any
    extrabuf = ...  # type: Any
    extrasize = ...  # type: Any
    extrastart = ...  # type: Any
    name = ...  # type: Any
    min_readsize = ...  # type: Any
    compress = ...  # type: Any
    fileobj = ...  # type: Any
    offset = ...  # type: Any
    mtime = ...  # type: Any
    def __init__(self, filename: str = ..., mode: str = ..., compresslevel: int = ...,
                 fileobj: IO[str] = ..., mtime: float = ...) -> None: ...
    @property
    def filename(self): ...
    size = ...  # type: Any
    crc = ...  # type: Any
    def write(self, data): ...
    def read(self, size=...): ...
    @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=...): ...

def open(filename: str, mode: str = ..., compresslevel: int = ...) -> GzipFile: ...