Skip to content

Commit

Permalink
Fix type checker warnings in cc_user.py
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed Mar 6, 2025
1 parent 35a0422 commit 4c562e1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions server/camcops_server/cc_modules/cc_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@
import pyotp
from sqlalchemy import text
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.orm import relationship, Session as SqlASession, Query
from sqlalchemy.orm import (
Mapped,
mapped_column,
relationship,
Session as SqlASession,
Query,
)
from sqlalchemy.sql import false
from sqlalchemy.sql.expression import and_, exists, not_
from sqlalchemy.sql.functions import func
Expand Down Expand Up @@ -120,7 +126,7 @@ class SecurityAccountLockout(Base):
__tablename__ = "_security_account_lockouts"

id = Column("id", Integer, primary_key=True, autoincrement=True)
username = Column(
username: Mapped[str] = mapped_column(
"username",
UserNameCamcopsColType,
nullable=False,
Expand Down

0 comments on commit 4c562e1

Please sign in to comment.