Skip to content

Commit f79d077

Browse files
committed
Add correct stub for _GzipReader
1 parent 541cc67 commit f79d077

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/isal/isal_zlib.pyi

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# This file is part of python-isal which is distributed under the
66
# PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2.
77

8-
import io
98
import typing
109

1110
ISAL_BEST_SPEED: int
@@ -65,5 +64,14 @@ def compressobj(level: int = ISAL_DEFAULT_COMPRESSION,
6564
zdict = None) -> Compress: ...
6665
def decompressobj(wbits: int = MAX_WBITS, zdict = None) -> Decompress: ...
6766

68-
class _GzipReader(io.RawIOBase):
69-
def __init__(self, fp: typing.BinaryIO, buffersize: int = 32 * 1024): ...
67+
class _GzipReader():
68+
def __init__(self, fp: typing.BinaryIO, buffersize: int = 32 * 1024): ...
69+
def readinto(self, obj) -> int: ...
70+
def readable(self) -> bool: ...
71+
def seekable(self) -> bool: ...
72+
def tell(self) -> int: ...
73+
def seek(self, offset: int, whence: int): ...
74+
def close(self): ...
75+
def readall(self) -> bytes: ...
76+
def read(self, __size: int): ...
77+
def flush(self): ...

0 commit comments

Comments
 (0)