Skip to content

Commit b0c7b83

Browse files
committed
refactor(types): update import paths for cryptography-related types
1 parent 945b445 commit b0c7b83

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

advanced_alchemy/types/encrypted_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from sqlalchemy import String, Text, TypeDecorator
77
from sqlalchemy import func as sql_func
88

9-
from advanced_alchemy._typing import CRYPTOGRAPHY_INSTALLED
109
from advanced_alchemy.exceptions import IntegrityError, MissingDependencyError
10+
from advanced_alchemy.typing import CRYPTOGRAPHY_INSTALLED
1111
from advanced_alchemy.utils.deprecation import warn_deprecation
1212

1313
if TYPE_CHECKING:

advanced_alchemy/types/password_hash/passlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from typing import TYPE_CHECKING, Any, Union
44

5-
from advanced_alchemy._typing import PASSLIB_INSTALLED
65
from advanced_alchemy.exceptions import MissingDependencyError
76
from advanced_alchemy.types.password_hash.base import HashingBackend
7+
from advanced_alchemy.typing import PASSLIB_INSTALLED
88

99
if TYPE_CHECKING:
1010
from passlib.context import CryptContext

advanced_alchemy/types/password_hash/pwdlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from typing import TYPE_CHECKING, Any, Union
44

5-
from advanced_alchemy._typing import PWDLIB_INSTALLED
65
from advanced_alchemy.exceptions import MissingDependencyError
76
from advanced_alchemy.types.password_hash.base import HashingBackend
7+
from advanced_alchemy.typing import PWDLIB_INSTALLED
88

99
if TYPE_CHECKING:
1010
from pwdlib.hashers.base import HasherProtocol

advanced_alchemy/types/totp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from typing import TYPE_CHECKING, Any, Callable, Optional, Union, cast
44

5-
from advanced_alchemy._typing import PYOTP_INSTALLED
65
from advanced_alchemy.exceptions import MissingDependencyError
76
from advanced_alchemy.types.encrypted_string import EncryptedString, EncryptionBackend, FernetBackend
7+
from advanced_alchemy.typing import PYOTP_INSTALLED
88

99
if TYPE_CHECKING:
1010
from sqlalchemy.engine import Dialect

0 commit comments

Comments
 (0)