-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathblake3.pyi
More file actions
31 lines (29 loc) · 844 Bytes
/
Copy pathblake3.pyi
File metadata and controls
31 lines (29 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from os import PathLike
import sys
if sys.version_info >= (3, 12):
from collections.abc import Buffer
else:
from typing_extensions import Buffer
__version__: str = ...
class blake3:
name: str
digest_size: int
block_size: int
key_size: int
AUTO: int
def __init__(
self,
data: Buffer = ...,
/,
*,
key: Buffer = ...,
derive_key_context: str = ...,
max_threads: int = ...,
usedforsecurity: bool = ...,
): ...
def update(self, data: Buffer, /) -> blake3: ...
def update_mmap(self, path: str | PathLike[str]) -> blake3: ...
def copy(self) -> blake3: ...
def reset(self) -> None: ...
def digest(self, length: int = ..., *, seek: int = ...) -> bytes: ...
def hexdigest(self, length: int = ..., *, seek: int = ...) -> str: ...