D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib
/
python3
/
dist-packages
/
passlib
/
Filename :
_protocols.py
back
Copy
from __future__ import annotations from typing import TYPE_CHECKING, Callable, Protocol if TYPE_CHECKING: from typing_extensions import Buffer, Self class HashLike(Protocol): """Lifted from hashlib.pyi.""" @property def digest_size(self) -> int: ... @property def block_size(self) -> int: ... @property def name(self) -> str: ... def copy(self) -> Self: ... def digest(self) -> bytes: ... def hexdigest(self) -> str: ... def update(self, data: Buffer, /) -> None: ... SHAFunc = Callable[[], HashLike]