Skip to content

Commit b3159c8

Browse files
authored
feat(types): add __all__ exports for password hashing backends (#471)
This update adds `__all__` exports for the Argon2, Passlib, and Pwdlib hashing backends, improving module visibility and usability.
1 parent 1dde193 commit b3159c8

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

advanced_alchemy/types/password_hash/argon2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from argon2 import PasswordHasher as Argon2PasswordHasher # pyright: ignore
1111
from argon2.exceptions import InvalidHash, VerifyMismatchError # pyright: ignore
1212

13+
__all__ = ("Argon2Hasher",)
14+
1315

1416
class Argon2Hasher(HashingBackend):
1517
"""Hashing backend using Argon2 via the argon2-cffi library."""

advanced_alchemy/types/password_hash/passlib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
if TYPE_CHECKING:
1010
from sqlalchemy import BinaryExpression, ColumnElement
1111

12+
__all__ = ("PasslibHasher",)
13+
1214

1315
class PasslibHasher(HashingBackend):
1416
"""Hashing backend using Passlib.

advanced_alchemy/types/password_hash/pwdlib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
from pwdlib.hashers.base import HasherProtocol
1111

12+
__all__ = ("PwdlibHasher",)
13+
1214

1315
class PwdlibHasher(HashingBackend):
1416
"""Hashing backend using Pwdlib."""

0 commit comments

Comments
 (0)