Skip to content

Commit 108a0ab

Browse files
nikolay-eclaude
andcommitted
Add type ignore comment for SQLAlchemy Column assignment
Fix mypy error with type: ignore[assignment] comment for SQLAlchemy ORM attribute assignment which is valid at runtime but confuses static type checker. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e572e2d commit 108a0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_or_create_user_key(user_id: int) -> str:
9191
else:
9292
# Generate new key for user
9393
user_key = _generate_user_key()
94-
user.encryption_key_sealed = _seal_user_key(user_key)
94+
user.encryption_key_sealed = _seal_user_key(user_key) # type: ignore[assignment]
9595
db.commit()
9696
logger.info(f"Generated new encryption key for user {user_id}")
9797
return user_key

0 commit comments

Comments
 (0)