mirror of
https://github.com/google/brotli.git
synced 2024-11-21 19:20:09 +00:00
Add type stubs for python module
This commit is contained in:
parent
a4d0581dfd
commit
218b10d867
26
python/brotli.pyi
Normal file
26
python/brotli.pyi
Normal file
@ -0,0 +1,26 @@
|
||||
from typing import Final
|
||||
|
||||
__version__: Final[str]
|
||||
version: Final[str]
|
||||
|
||||
MODE_GENERIC: Final[int]
|
||||
MODE_TEXT: Final[int]
|
||||
MODE_FONT: Final[int]
|
||||
|
||||
class Compressor:
|
||||
def __init__(self, mode: int=..., quality: int=11, lgwin:int=22, lgblock:int=0): ...
|
||||
def process(self, string: bytes) -> bytes: ...
|
||||
def finish(self) -> bytes: ...
|
||||
def flush(self) -> bytes: ...
|
||||
|
||||
|
||||
class Decompressor:
|
||||
def __init__(self): ...
|
||||
def is_finished(self) -> bool: ...
|
||||
def process(self, string: bytes) -> bytes: ...
|
||||
|
||||
def compress(string: bytes, mode: int=..., quality: int=11, lgwin:int=22, lgblock:int=0) -> bytes: ...
|
||||
|
||||
def decompress(string: bytes) -> bytes: ...
|
||||
|
||||
class error(Exception): ...
|
Loading…
Reference in New Issue
Block a user