Upgrade and apply Ruff linting

This commit is contained in:
François Voron
2024-03-11 13:51:43 +01:00
parent e4d6923145
commit e7972561c0
4 changed files with 12 additions and 18 deletions

View File

@@ -7,14 +7,11 @@ from passlib.context import CryptContext
class PasswordHelperProtocol(Protocol):
def verify_and_update(
self, plain_password: str, hashed_password: str
) -> Tuple[bool, str]:
... # pragma: no cover
) -> Tuple[bool, str]: ... # pragma: no cover
def hash(self, password: str) -> str:
... # pragma: no cover
def hash(self, password: str) -> str: ... # pragma: no cover
def generate(self) -> str:
... # pragma: no cover
def generate(self) -> str: ... # pragma: no cover
class PasswordHelper(PasswordHelperProtocol):