Skip to content

Commit fe5b3c5

Browse files
committed
Add default arguments
1 parent 43d2900 commit fe5b3c5

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

src/isal/igzip_lib.pyi

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,9 @@ MEM_LEVEL_LARGE: int
4646
MEM_LEVEL_EXTRA_LARGE: int
4747
IsalError: OSError
4848

49-
def compress(data, level: int = ..., flag: int = ..., hist_bits: int = ...
50-
) -> bytes: ...
51-
def decompress(data, flag: int = ..., hist_bits: int = ..., bufsize: int = ...
52-
) -> bytes: ...
53-
54-
class IgzipDecompressor:
55-
unused_data: bytes
56-
eof: bool
57-
needs_input: bool
58-
59-
def __new__(cls,
60-
flag: int = DECOMP_DEFLATE,
61-
hist_bits: int = MAX_HIST_BITS,
62-
zdict = None) -> IgzipDecompressor: ...
63-
64-
def decompress(self, data, max_length: int = -1) -> bytes: ...
49+
def compress(data, level: int = ISAL_DEFAULT_COMPRESSION,
50+
flag: int = COMP_DEFLATE,
51+
hist_bits: int = MAX_HIST_BITS) -> bytes: ...
52+
def decompress(data, flag: int = DECOMP_DEFLATE,
53+
hist_bits: int = MAX_HIST_BITS,
54+
bufsize: int = DEF_BUF_SIZE) -> bytes: ...

0 commit comments

Comments
 (0)