File tree Expand file tree Collapse file tree
advanced_alchemy/types/password_hash Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from typing import TYPE_CHECKING , Any , Union
44
5- from passlib .context import CryptContext # pyright: ignore
6-
75from advanced_alchemy .types .password_hash .base import HashingBackend
86
97if TYPE_CHECKING :
8+ from passlib .context import CryptContext
109 from sqlalchemy import BinaryExpression , ColumnElement
1110
1211__all__ = ("PasslibHasher" ,)
@@ -19,7 +18,7 @@ class PasslibHasher(HashingBackend):
1918 Install with `pip install passlib` or `uv pip install passlib`.
2019 """
2120
22- def __init__ (self , context : CryptContext ) -> None :
21+ def __init__ (self , context : " CryptContext" ) -> None :
2322 """Initialize PasslibBackend.
2423
2524 Args:
Original file line number Diff line number Diff line change 55from advanced_alchemy .types .password_hash .base import HashingBackend
66
77if TYPE_CHECKING :
8+ from pwdlib .hashers .base import HasherProtocol
89 from sqlalchemy import BinaryExpression , ColumnElement
910
10- from pwdlib .hashers .base import HasherProtocol
11-
1211__all__ = ("PwdlibHasher" ,)
1312
1413
1514class PwdlibHasher (HashingBackend ):
1615 """Hashing backend using Pwdlib."""
1716
18- def __init__ (self , hasher : HasherProtocol ) -> None :
17+ def __init__ (self , hasher : " HasherProtocol" ) -> None :
1918 """Initialize PwdlibBackend.
2019
2120 Args:
You can’t perform that action at this time.
0 commit comments