mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-07 17:43:53 +02:00
21 lines
486 B
Python
21 lines
486 B
Python
from typing import Union
|
|
|
|
Buffer = Union[bytes, bytearray, memoryview]
|
|
|
|
class RsyncError(Exception):
|
|
pass
|
|
|
|
class Hasher:
|
|
def __init__(self, which: str, data: Buffer = b''): ...
|
|
def update(self, data: Buffer) -> None: ...
|
|
def reset(self) -> None: ...
|
|
def digest(self) -> bytes: ...
|
|
def hexdigest(self) -> str: ...
|
|
|
|
@property
|
|
def digest_size(self) -> int: ...
|
|
@property
|
|
def block_size(self) -> int: ...
|
|
@property
|
|
def name(self) -> str: ...
|