We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640c630 commit 9db5127Copy full SHA for 9db5127
src/labs/models/user.py
@@ -12,16 +12,27 @@
12
13
from sqlalchemy import event
14
from sqlalchemy.exc import NoResultFound
15
-from sqlalchemy.orm import Mapped, mapped_column
+from sqlalchemy.orm import (
16
+ Mapped,
17
+ mapped_column
18
+)
19
+
20
from sqlalchemy.ext.asyncio import async_object_session
21
22
# OTP helpers from pyotp
-from pyotp import TOTP, random_base32
23
+from pyotp import (
24
+ TOTP,
25
+ random_base32
26
27
28
from ..db import Base
29
from ..settings import settings
-from .utils import DateTimeMixin, IdentifierMixin,\
- ModelCRUDMixin, timestamp
30
+from .utils import (
31
+ DateTimeMixin,
32
+ IdentifierMixin,
33
+ ModelCRUDMixin,
34
+ timestamp
35
36
37
from ..utils.auth import hash_password, verify_password
38
0 commit comments