From ed3c2828007b53e47c1f8bc42777fb8d7df464c1 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 10 Aug 2025 14:13:30 +0200 Subject: [PATCH] Remove unused ignore comments. --- tildes/scripts/initialize_db.py | 2 +- tildes/tildes/models/user/user.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tildes/scripts/initialize_db.py b/tildes/scripts/initialize_db.py index 789a2eb..5c6cb84 100644 --- a/tildes/scripts/initialize_db.py +++ b/tildes/scripts/initialize_db.py @@ -8,7 +8,7 @@ import os import subprocess from typing import Optional -from alembic import command # type: ignore[attr-defined] +from alembic import command from alembic.config import Config from sqlalchemy.engine import Connectable, Engine diff --git a/tildes/tildes/models/user/user.py b/tildes/tildes/models/user/user.py index b6221c7..fb40164 100644 --- a/tildes/tildes/models/user/user.py +++ b/tildes/tildes/models/user/user.py @@ -177,7 +177,7 @@ class User(DatabaseModel): def __init__(self, username: str, password: str): """Create a new user account.""" self.username = username - self.password = password # type: ignore + self.password = password def __acl__(self) -> AclType: """Pyramid security ACL.""" @@ -266,7 +266,7 @@ class User(DatabaseModel): raise ValueError("New password is the same as old password") # disable mypy on this line because it doesn't handle setters correctly - self.password = new_password # type: ignore + self.password = new_password def is_correct_two_factor_code(self, code: str) -> bool: """Verify that a TOTP/backup code is correct."""