Skip to content

Commit 356ba73

Browse files
committed
Add xxhash stub
1 parent b16327f commit 356ba73

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

third_party/2and3/xxhash.pyi

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import sys
2+
from _typeshed import ReadableBuffer
3+
from hashlib import _Hash
4+
5+
VERSION: str
6+
XXHASH_VERSION: str
7+
8+
class _IntDigestHash(_Hash):
9+
def intdigest(self) -> int: ...
10+
11+
# python-xxhash v2.0.0 does not support the string or usedforsecurity kwargs
12+
def xxh32(__string: ReadableBuffer = ...) -> _IntDigestHash: ...
13+
def xxh64(__string: ReadableBuffer = ...) -> _IntDigestHash: ...
14+
def xxh3_64(__string: ReadableBuffer = ...) -> _IntDigestHash: ...
15+
def xxh3_128(__string: ReadableBuffer = ...) -> _IntDigestHash: ...
16+
def xxh32_digest(input: ReadableBuffer = ...) -> bytes: ...
17+
def xxh32_intdigest(input: ReadableBuffer = ...) -> bytes: ...
18+
def xxh32_hexdigest(input: ReadableBuffer = ...) -> bytes: ...
19+
def xxh64_digest(input: ReadableBuffer = ...) -> bytes: ...
20+
def xxh64_intdigest(input: ReadableBuffer = ...) -> bytes: ...
21+
def xxh64_hexdigest(input: ReadableBuffer = ...) -> bytes: ...
22+
def xxh3_64_digest(input: ReadableBuffer = ...) -> bytes: ...
23+
def xxh3_64_intdigest(input: ReadableBuffer = ...) -> bytes: ...
24+
def xxh3_64_hexdigest(input: ReadableBuffer = ...) -> bytes: ...
25+
def xxh3_128_digest(input: ReadableBuffer = ...) -> bytes: ...
26+
def xxh3_128_intdigest(input: ReadableBuffer = ...) -> bytes: ...
27+
def xxh3_128_hexdigest(input: ReadableBuffer = ...) -> bytes: ...
28+
def xxh128_digest(input: ReadableBuffer = ...) -> bytes: ...
29+
def xxh128_intdigest(input: ReadableBuffer = ...) -> bytes: ...
30+
def xxh128_hexdigest(input: ReadableBuffer = ...) -> bytes: ...

0 commit comments

Comments
 (0)