From 7f04af53f29d74f40e7ed60c33358d5c6e3e4fc9 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 14:36:24 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20[code=20health=20improvement]=20?= =?UTF-8?q?Silence=20unused=20imports=20in=20models/=5F=5Finit=5F=5F.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated `backend/app/models/__init__.py` to use explicit re-exports (e.g., `from app.models.database_models import User as User`) to satisfy static analysis tools and improve code health. This follows PEP 484 and silences "unused import" warnings while maintaining the public API for the models package. 🎯 **What:** The code health issue addressed is unused imports in `models/__init__.py` being flagged by static analysis tools. 💡 **Why:** This improves maintainability and silences noise in linting reports without breaking the package's public API. ✅ **Verification:** Confirmed via code review and manual inspection that models are still correctly exported and correctly used in other parts of the codebase. ✨ **Result:** The codebase is now cleaner and follows Python best practices for package exports. Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- backend/app/models/__init__.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/backend/app/models/__init__.py b/backend/app/models/__init__.py index e73a86a..589834b 100644 --- a/backend/app/models/__init__.py +++ b/backend/app/models/__init__.py @@ -1,18 +1,18 @@ """Models package""" from app.models.database_models import ( - User, - MailAccount, - ProcessingRun, - ProcessingLog, - NotificationConfig, - MailServerPreset, - SubscriptionPlan, - AuditLog, - SubscriptionTier, - MailProtocol, - AccountStatus, - NotificationChannel, + AccountStatus as AccountStatus, + AuditLog as AuditLog, + MailAccount as MailAccount, + MailProtocol as MailProtocol, + MailServerPreset as MailServerPreset, + NotificationChannel as NotificationChannel, + NotificationConfig as NotificationConfig, + ProcessingLog as ProcessingLog, + ProcessingRun as ProcessingRun, + SubscriptionPlan as SubscriptionPlan, + SubscriptionTier as SubscriptionTier, + User as User, ) __all__ = [