massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / xxhash / xxhash.pyi
1 import sys
2 from _typeshed import ReadableBuffer
3 from typing_extensions import SupportsIndex, final
4
5 if sys.version_info >= (3, 0):
6     from hashlib import _Hash
7 else:
8     from hashlib import _hash as _Hash
9
10 VERSION: str
11 XXHASH_VERSION: str
12
13 class _IntDigestHash(_Hash):
14     @property
15     def seed(self) -> int: ...
16     @property
17     def digestsize(self) -> int: ...
18     def __init__(self, input: ReadableBuffer | str = ..., seed: SupportsIndex = ...) -> None: ...
19     def intdigest(self) -> int: ...
20     def reset(self) -> None: ...
21
22 # python-xxhash v2.0.0 does not support the string or usedforsecurity kwargs
23 @final
24 class xxh32(_IntDigestHash): ...
25
26 @final
27 class xxh64(_IntDigestHash): ...
28
29 @final
30 class xxh3_64(_IntDigestHash): ...
31
32 @final
33 class xxh3_128(_IntDigestHash): ...
34
35 def xxh32_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
36 def xxh32_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
37 def xxh32_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
38 def xxh64_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
39 def xxh64_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
40 def xxh64_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
41 def xxh3_64_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
42 def xxh3_64_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
43 def xxh3_64_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
44 def xxh3_128_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
45 def xxh3_128_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
46 def xxh3_128_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
47
48 xxh128 = xxh3_128
49 xxh128_digest = xxh3_128_digest
50 xxh128_intdigest = xxh3_128_intdigest
51 xxh128_hexdigest = xxh3_128_hexdigest