mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add stubs for zstd (#9484)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
4
stubs/zstd/METADATA.toml
Normal file
4
stubs/zstd/METADATA.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
version = "1.5.*"
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = false
|
||||
15
stubs/zstd/zstd.pyi
Normal file
15
stubs/zstd/zstd.pyi
Normal file
@@ -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: ...
|
||||
Reference in New Issue
Block a user