brotli.pyi 508 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(
  13. string: bytes, mode: _Mode = ..., quality: int = ..., lgwin: int = ..., lgblock: int = ...
  14. ) -> bytes: ...
  15. def decompress(string: bytes) -> bytes: ...
  16. class error(Exception): ...