mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Upgrade and apply Ruff linting
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user