Skip to content

Commit 218b10d

Browse files
dbowringeustas
authored andcommitted
Add type stubs for python module
1 parent a4d0581 commit 218b10d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

python/brotli.pyi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from typing import Final
2+
3+
__version__: Final[str]
4+
version: Final[str]
5+
6+
MODE_GENERIC: Final[int]
7+
MODE_TEXT: Final[int]
8+
MODE_FONT: Final[int]
9+
10+
class Compressor:
11+
def __init__(self, mode: int=..., quality: int=11, lgwin:int=22, lgblock:int=0): ...
12+
def process(self, string: bytes) -> bytes: ...
13+
def finish(self) -> bytes: ...
14+
def flush(self) -> bytes: ...
15+
16+
17+
class Decompressor:
18+
def __init__(self): ...
19+
def is_finished(self) -> bool: ...
20+
def process(self, string: bytes) -> bytes: ...
21+
22+
def compress(string: bytes, mode: int=..., quality: int=11, lgwin:int=22, lgblock:int=0) -> bytes: ...
23+
24+
def decompress(string: bytes) -> bytes: ...
25+
26+
class error(Exception): ...

0 commit comments

Comments
 (0)