brotli.pyi 504 B

12345678910111213141516171819202122
  1. import enum
  2. __version__: str
  3. class _Mode(enum.IntEnum): # not an actual enum but helps with typing
  4. _MODE_GENERIC = ...
  5. _MODE_TEXT = ...
  6. _MODE_FONT = ...
  7. MODE_GENERIC = _Mode._MODE_GENERIC
  8. MODE_TEXT = _Mode._MODE_TEXT
  9. MODE_FONT = _Mode._MODE_FONT
  10. class Compressor: ...
  11. class Decompressor: ...
  12. def compress(string: bytes, mode: _Mode = ..., quality: int = ..., lgwin: int = ..., lgblock: int = ...) -> bytes: ...
  13. def decompress(string: bytes) -> bytes: ...
  14. class error(Exception): ...