Expose reset as well

This commit is contained in:
Kovid Goyal
2023-07-14 15:52:38 +05:30
parent fabb6bd8cc
commit 562f09c1f6
2 changed files with 24 additions and 0 deletions

View File

@@ -1,3 +1,20 @@
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: ...