Skip to content

Commit

Permalink
Add stubs for zstd (#9484)
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <[email protected]>
  • Loading branch information
victorbnl and JelleZijlstra authored Feb 1, 2023
1 parent 0e7365a commit 1cc8080
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stubs/zstd/METADATA.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version = "1.5.*"

[tool.stubtest]
ignore_missing_stub = false
15 changes: 15 additions & 0 deletions stubs/zstd/zstd.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from _typeshed import ReadableBuffer

class Error(Exception): ...

def ZSTD_compress(__data: ReadableBuffer, __level: int = ..., __threads: int = ...) -> bytes: ...
def ZSTD_external() -> int: ...
def ZSTD_uncompress(__data: ReadableBuffer) -> bytes: ...
def ZSTD_version() -> str: ...
def ZSTD_version_number() -> int: ...
def compress(__data: ReadableBuffer, __level: int = ..., __threads: int = ...) -> bytes: ...
def decompress(__data: ReadableBuffer) -> bytes: ...
def dumps(__data: ReadableBuffer, __level: int = ..., __threads: int = ...) -> bytes: ...
def loads(__data: ReadableBuffer) -> bytes: ...
def uncompress(__data: ReadableBuffer) -> bytes: ...
def version() -> str: ...

0 comments on commit 1cc8080

Please sign in to comment.