mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Remove xxhash (#9985)
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
version = "3.0.*"
|
||||
obsolete_since = "3.1.0" # Released on 2022-10-19
|
||||
@@ -1,49 +0,0 @@
|
||||
from _typeshed import ReadableBuffer
|
||||
from hashlib import _Hash
|
||||
from typing_extensions import SupportsIndex, final
|
||||
|
||||
VERSION: str
|
||||
XXHASH_VERSION: str
|
||||
VERSION_TUPLE: tuple[int, ...]
|
||||
|
||||
algorithms_available: set[str]
|
||||
|
||||
class _IntDigestHash(_Hash):
|
||||
@property
|
||||
def seed(self) -> int: ...
|
||||
@property
|
||||
def digestsize(self) -> int: ...
|
||||
def __init__(self, input: ReadableBuffer | str = ..., seed: SupportsIndex = ...) -> None: ...
|
||||
def intdigest(self) -> int: ...
|
||||
def reset(self) -> None: ...
|
||||
|
||||
# python-xxhash v2.0.0 does not support the string or usedforsecurity kwargs
|
||||
@final
|
||||
class xxh32(_IntDigestHash): ...
|
||||
|
||||
@final
|
||||
class xxh64(_IntDigestHash): ...
|
||||
|
||||
@final
|
||||
class xxh3_64(_IntDigestHash): ...
|
||||
|
||||
@final
|
||||
class xxh3_128(_IntDigestHash): ...
|
||||
|
||||
def xxh32_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
|
||||
def xxh32_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
|
||||
def xxh32_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
|
||||
def xxh64_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
|
||||
def xxh64_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
|
||||
def xxh64_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
|
||||
def xxh3_64_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
|
||||
def xxh3_64_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
|
||||
def xxh3_64_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
|
||||
def xxh3_128_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
|
||||
def xxh3_128_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
|
||||
def xxh3_128_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
|
||||
|
||||
xxh128 = xxh3_128
|
||||
xxh128_digest = xxh3_128_digest
|
||||
xxh128_intdigest = xxh3_128_intdigest
|
||||
xxh128_hexdigest = xxh3_128_hexdigest
|
||||
@@ -1,4 +0,0 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
VERSION: str
|
||||
VERSION_TUPLE: Incomplete
|
||||
Reference in New Issue
Block a user